File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

<s:submit> problem

John Eric Hamacher
Ranch Hand

Joined: Apr 25, 2007
Posts: 230
Struts: 2.0.16


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

Joined: Sep 29, 2008
Posts: 12617

Try using OGNL and escaping the "src" attribute value in the OGNL escape sequence %{}.
I agree. Here's the link:
subject: <s:submit> problem
It's not a secret anymore!