struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Akins <>
Subject Bad Struts Day <s:property/>
Date Fri, 10 Dec 2010 03:56:11 GMT
Not sure what is best here.

I need to create an URL with a value from my default resource bundle in the URL

For example <s:text name="IMAGE"/> returns logo.gif

I need to do something like <s:url value="/%{IMAGE}" /> that will
return my relative url with the value of IMAGE appended.

So if I'm at /App/11/index.jsp my img src will be /App/11/logo.gif

If I simply do <s:url value="/"/><s:text name="IMAGE"/> oftentimes the
jsessionid value get's placed on the end of the url and corrupts the
intended results.

Using struts 2.2.1 .. any suggestions?

Greg Akins

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message