views:

41

answers:

1

Hey there, I was trying to display a picture using regular HTML

I have this,

<img src="../../web-app/images/cargo.png" align="left"/>

Maybe I'm doing something wrong there backing up directories with the "../../" But last time I checked that's how it was done

If there is a simpler and better way to do it via Groovy, or maybe CSS, I'd appreciate the help, Thanks

FG

+6  A: 

Grails way:

<img src="${resource(dir:'images',file:'cargo.png')}" />
Ethan Shepherd