The trick is to point the "input" variable in your struts-config.xml to the
action class that "generated" the JSP page rather than the JSP page itself.

 <action attribute="enquiryForm" name="enquiryForm" path="/Enquiry"
scope="request"
                 validate="true" type="com.tuningfork.action.EnquiryAction"
parameter="operation" input="/Enquiry.do?operation=validateFailed">

On failure of validation, you should redirect it to the "preparation" action
class for the form that solicits information for you - the action class
where you would be populating the "arraylist" that you are using in the JSP.

HTH,
~raghu~


On 1/10/06, Sony Thomas <[EMAIL PROTECTED]> wrote:
>
> Dear friends,
>
> I have a Add user jsp page and in my jsp page the user can select his
> language from a dropdown menu. I am generating it from the ArrayList
> property in UserForm.
>
>            <td>
>                <html:select name="UserForm" property="language"
> tabindex="8">
>                    <html:optionsCollection name="UserForm"
> property="languages" label="name" value="code"/>
>                </html:select>
>            </td>
>
> My problem is ,  when there is a validation error and control returns to
> the jsp page it is not able to find the languages collection, ie
> ArrayList. I know it is possible to solve by setting the form to
> session. but I dont want it to be in the session. Is there is any way
> out for this problem ??
>
> Please reply to me
>
> thanks in advance
>
>
> Sony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to