struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kies <danielk...@gmail.com>
Subject Re: Validation Post-Back help
Date Thu, 30 Dec 2004 20:42:22 GMT
Wendy - I don't want to use the session for storage because of
scalability and memory constraints.

I have read and understand the point that as long as I have the field
defined in the DynaActionForm that the data will be in the request
when I need it after validation fails.

-How do you get a list into a list specified in the form bean?
Example: 
<form-property name="statusList" type="java.util.List">
</form-property>

in JSP to show the list in a drop down:
<select name="status"> 
<logic:iterate indexId="id" id="statusList" name="statusList">
        <option value="<bean:write name="statusList"
property="statusType"/>"><bean:write name="statusList"
property="statusType" /></option>
</logic:iterate> 
</select>    

**So what do I need to do to put this data back in the request so it
shows up if the validation fails?  I can figure it out for the other
fields, just not the list.

Thanks for any help.

On Thu, 30 Dec 2004 10:54:12 -0700, Wendy Smoak <java@wendysmoak.com> wrote:
> From: "Daniel Kies" <danielkies@gmail.com>
> >  Can you offer a decent way of
> > searching through the archives?
> 
> I like http://www.mail-archive.com.  Put 'struts' in the box on the first
> page, then choose the user list.
> 
> Why are you dismissing session scope?
> 
> --
> Wendy Smoak
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

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


Mime
View raw message