struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "White, Joshua A (HTSC, CASD)" <>
Subject Beginner html:multibox help
Date Mon, 28 Jul 2003 11:20:37 GMT
I would like to generate a list of check boxes from a collection but
determine if the checkbox is checked using a String[].  How could this be
done?  The following code does not work, but shows what I have tried.  



	private String[] userSelectedState;

	public void setUserSelectedState(String[] userSelectedState) {
	public String[] getUserSelectedState() {
	public Collection getAllStatesFromDb() {

	<logic:iterate id="state" name="myForm" property="allStatesFromDb">
      	<bean:define id="stateId" name="state" property="stateId"
scope="page" toScope="page"/>
            <html:multibox  property="userSelectedState"

            <bean:write name="state" property="stateDescription"

This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.

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

View raw message