• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<s:submit> problem

 
John Eric Hamacher
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts: 2.0.16

Hello:

I'm wrestling with the <s:submit> tag. Its src attribute does not take expressions and I need to put to context root into it (We have our jsps inside WEB-INF and our images outside of it -- don't ask me why). I try:


which doesn't work as well as:



which doesn't work either.

Has anybody run into this problem?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using OGNL and escaping the "src" attribute value in the OGNL escape sequence %{}.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic