struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Help for Struts2 with JSTL
Date Thu, 14 Dec 2006 15:02:34 GMT
Hello Nagraj

If the variable is not on the ValueStack (an example of items stored in ValueStack would include
the Action instance) then use the #
so assuming is set in Session use

<s:checkbox name="stateCheck" id=""/>

Anyone else?
This e-mail message (including attachments, if any) is intended for the use of the individual
or entity to which it is addressed and may contain information that is privileged, proprietary
, confidential and exempt from disclosure. If you are not the intended recipient, you are
notified that any dissemination, distribution or copying of this communication is strictly


Needed some help on struts2 for getting the id of a list i have in my sessionScope (say StateList).
This individual object in this list is State which has fields "id" and "name". I'm using the
following code to get a checkbox rendered with its id being the id of the state

<s:checkbox name="stateCheck" id="%{ }/>

In the final HTML page i get the code as id="". Please do help me figure out how should i
get the id.

I've tried out the following with all the 3 : "$", "#", "%" 

Kindly help,

View raw message