I am trying to write an image button of the form:

<s:submit type="image" src="context-root/images/search1.gif" name="search"/>

where context-root is the configured context root of my web application. Can
anyone suggest a good way to dynamically populate the context root?

I am assuming that the src string is being interpreted via OGNL but I can't
figure out an appropriate expression to use to extract the context root from
the request.


-- 
View this message in context: 
http://www.nabble.com/Context-Root-for-Image-Button-src-attribute-tp16952908p16952908.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to