You still put the "ethncityArray" into request but you should put in your ActionForm class, before the function validate return, instead of in the method perform of your Action class
Hope it helps
 
Quan
----- Original Message -----
From: cahana
Sent: Sunday, July 08, 2001 1:47 PM
Subject: validation

I have a jsp page that has input fields for personal information, so i made a PersonalInfoForm with all the setters and getters and a validate method.  On this jsp i also have a drop down list that gets created by an array of beans:
 
<html:select name="personalInfoForm" property="ethnicity" >
        <html:option value=""/>
        <html:options name="translateItem" collection="ethnicityArray" property="code" labelProperty="longdescr" />
</html:select>
 
I pass "ethncityArray", which is an array of TranslateItem beans, to this page via the request.  The problem i have is that when the validate method is called when i hit submit and an error occurs, it goes back to the jsp but the jsp can no longer find "ethnicityArray".  Subsequently an error is thrown.  Does anyone know how i can fix this, aside from putting it in the session?
 
cameron

Reply via email to