On Thu, 27 Feb 2003 15:41:05 -0500
[EMAIL PROTECTED] wrote:

> Hello,
> 
> on JSP I have:
> 
> dropdown selection:
> 
> <html:select name="reportForm" property="selectedEquipment"
> styleClass="smallFont" >
> <html:options name="reportForm" property="equipmentList" />
> </html:select>
> 
> and input field that I need validate in my reportForm  (on server)
> 
> the reportForm has all fields that are filled by Action class.
> and JSP display all just fine.
> 
> but, when I type "wrong" value into input field
> then reportForm validate returns errors
> and then Struts forward it to JSP
> and then I get error - so equipmentList is null - nothing filled it!!!
> 
> how I can resolve my problem?

Look down on the list to the messages just posted about this under..
Revisiting: repopulating lists after validation returns.

There are several ways to do it. Simplest is to just put your collection
into session scope.


-- 
Rick Reumann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to