struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Schröder" <>
Subject Re: struts <s:if test=""> problem
Date Wed, 20 Aug 2008 13:27:20 GMT
> Initially when i don't have in my session
> <s:if test="%{user.roleId==0}">
> it is working if i write getters and setters for user object in my action class
Exactly, because the action is pushed onto the value stack automatically.
You might want to read the short section on the Value Stack / OGNL on the freely available
ebook "Starting Struts 2" ( on page 29 to
31 to understand which variables are accessible within tags.
An even better place to look is chapter 6.1 of "Struts 2 in Action" which is more detailed
(but not available for free).

GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!

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

View raw message