aspose file tools*
The moose likes Struts and the fly likes <s:submit> problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "<s:submit> problem" Watch "<s:submit> problem" New topic
Author

<s:submit> problem

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
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

Joined: Sep 29, 2008
Posts: 12617

Try using OGNL and escaping the "src" attribute value in the OGNL escape sequence %{}.
 
wood burning stoves
 
subject: <s:submit> problem