struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <>
Subject Re: How to use an application scoped variable in <s:a href=""/>?
Date Tue, 11 Jan 2011 03:27:34 GMT
I'm pretty sure that the property tag is a better candidate in order
to evaluate OGNL expressions like this.
Try this
<a href="<s:property value="#application['...']"/>">Test</a>

2011/1/11 Rubens Gomes <>:
> I am using the <s:a ...> tags in my JSP pages.  And I am using <s:url..>
to define URLs for the <s:a href="" />.  I have recently made some changes to place
the URLs <s:url.../> variables on the application scope (so that they can be shared
by all requests/threads).   Since I made this change I need to change the href in <s:a.../>
to point to an application scoped variable instead.  Is there any way to do that?
> I already tried:  <s:a href="%{#application.var}"...>, and as far as I know it
does not work.
> Thanks,
> Rubens.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Maurizio Cucchiara

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

View raw message