This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts tag html:img

 
swenling wen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<td width="16%"><html:img page="/images/"<bean:write name="products" property="ImgURL"/>"/></td>
In my bean,ImgURL is String,name of a photo,I put photos to a folder /images,but now How to do? It's wrong do like that. help me
thank you !!!
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't embed one Struts tag inside another. Struts just doesn't support that. The easiest way to fix this is to use a regular HTML <img> tag rather than <html:img>. You can embed a <bean:write> tag inside a regular HTML tag.
 
swenling wen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you !!! but another question appers
my list.jsp contain listcontent.jsp
listcontent.jsp can display the photo,but list.jsp can't display
why??? can you help me??
 
swenling wen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my question has solved .
thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic