What about
<s:url value="%{#request.contextPath}/%{IMAGE}" id="url"/>
2010/12/10 Greg Akins <[email protected]>:
> 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
>
> http://insomnia-consulting.org
> http://www.pghcodingdojo.org
> http://pittjug.dev.java.net
> http://twitter.com/akinsgre
> http://www.linkedin.com/in/akinsgre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Maurizio Cucchiara
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]