I had the same problem, and besides setting the form to session scope you could do the following: Instead of storing your list of languages in an ArrayList, store them in an array of Strings. Then on your jsp you should be able to iterate over this list and sent all languages via the html:hidden tag (that is why you have to use Strings, because they are sent as Strings) with your request. So the languages are stored in your form with every request, and when validation fails, you still have the languages there. The iteration should look something like this:
<logic:iterate id="languageEntry" name="UserForm" property="languages"> <html:hidden property="languages" value="${languageEntry}" /> </logic:iterate> Hope that helps, perhaps you could reply when it works! Peter -----Ursprüngliche Nachricht----- Von: Sony Thomas [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. Januar 2006 10:51 An: user@struts.apache.org Betreff: Validation Problem - very urgent please reply 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]