struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Biesbrock, Kevin" <Biesbrock.Ke...@aoins.com>
Subject RE: How to use an application scoped variable in <s:a href=""/>?
Date Tue, 11 Jan 2011 18:02:39 GMT
Awesome!  Glad that worked for ya!

Beez

-----Original Message-----
From: Rubens Gomes [mailto:rubens@pocketgear.com] 
Sent: Tuesday, January 11, 2011 12:01 PM
To: Struts Users Mailing List
Subject: RE: How to use an application scoped variable in <s:a
href=""/>?

Thanks.  The following also worked:

<s:a href="%{#application['view-register']}"
title="%{getText('textTitle.account.register')}">
          <s:text name="link.account.register" /></s:a>

Bottom-line, if we want to use "-" hyphen on OGNL expressions we must
define them in the following way

%{application['var-name']}

This is great.  Now I can name my JSP URL action variables the same way
as the equivalent Struts 2 Annotation actions.

Thank you very much.

Rubens.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message