kurt, I am putting the list of values for the drop down in the form bean as dynaform.set("userList", list) in theaction class. (userList is a form property here) but still not able to get the drop down re-populated back when validation errors occur. What am I doing wrong here?
Thanks in advance. Thanks, Mallik --- [EMAIL PROTECTED] wrote: > Once the user does a submit you have a new request. > So the old request where your list is is no longer > in scope and therefore no longer valid. > > One solution would be to set validate="false" in the > action mapping for the action and then call the > form's validate method yourself in the aciton. If > there are errors you can forward back to the jsp and > reset the drop down list. > > You can also put the list of values for the drop > down in the form bean as well. > > Thanks, > Kurt > > -- > Kurt Williams > Marex Services > 9704 Big Sage NW > Albuquerque, NM 87114 > [EMAIL PROTECTED] > 505-897-1012 (office) > 505-450-7105 (cell) > > > > Hi, > > I am new to struts frame work.I have a question > > regarding repopulating dropdown menu when > validation > > error occurs in the form containing dropdowns. > > > > In my application when user clicks on a link it > goes > > to the action class and I get the list to from > > database and I put it in request scope to display > in > > dropdown . > > but when ever any validation errors occurs on that > > page, instead of showing the same page I get an > error > > saying "Cannot find bean under name (userList-this > is > > my list to populate dropdown)". > > > > What should I do to fix this problem. > > > > any help is appreciated. > > > > Thanks > > Mallik. > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Small Business - Try our new resources > site! > > http://smallbusiness.yahoo.com/resources/ > > > > > --------------------------------------------------------------------- > > 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] > > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]