H, Rahul: The pull-down menus are prepopulated using the session. For pull-down menus, I'm using the same approach as Rick used in "LESSON II - 9 - Create SetUpEmployeeAction". You can see here: http://www.reumann.net/struts/lesson2/step9.do
Rick: I've change the "scope" in struts-config from "request" to "session" and it is working fine now. But question is, why it is not working with scope=request? Bye, Viki. On 12/24/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > > On 12/21/05, Vikrama Sanjeeva <[EMAIL PROTECTED]> wrote: > > > > > > I have a form which consists of pull-down menus, radio button, text area > > and text fields. The form takes all the required input fields from user, > > validate them and if validation fail's, the same form is called with > > pre-populated values (as entered 1st time by user). This is true when > > there > > is NO form "name" and "type" is given in form tag. But when I give form > > "name" and "type" in form tag, only pull-down menus are populated if > > validation fails. Whereas, text field, text area and radio buttons are > not > > pre-poulated. > > > > I'm not sure what is going wrong here?? Below is the related code I'm > > using. > > > > This is a classic problem and it is why I recommend you call your > validation > manually from your Action class. I decribe in detail the exact problem you > are encountering here > http://www.reumann.net/struts/articles/request_lists.jsp and the solution > I > like to use. > > -- > Rick > >