Since Struts forwards (not redirects) to the url defined in the input attribute upon validation failure (assuming validate is set to true), then nothing is lost in the request; and therefore the user input is not lost.
robert > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 06, 2004 4:04 PM > To: Struts Users Mailing List > Subject: RE: Request bean is lost > > > My lists are specific to each user based on security attributes obtained > from the database. > Therefore, the application scope solution is not acceptable for these > lists. > > If I go the first solution route, then I have my 3 Lists as part of the > Form bean. > The user selects from the list and submits the data. > If I set the imput to /Page.do wouldn't I lose the user's input? > > - Glenn > > > > > > "Robert Taylor" <[EMAIL PROTECTED]> > 06/07/2004 02:39 PM > Please respond to "Struts Users Mailing List" > > > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > cc: > > Subject: RE: Request bean is lost > Classification: > > > One solution is to point the input attribute value of the PageSubmit.do > action mapping > to the Page.do action mapping thus re-retrieving the lists before > displaying the page. > > An alternative solution is to override the reset() of your action form so > that it > retrieves the lists from the database and places them in the appropriate > scope. > > If the lists are composed of static data, you might consider retrieving > them on > application start up and placing them in application scope > (ServletContext) where > they will be available to all requests and then there would be no need to > retrieve > them each time the page is displayed. > > robert > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 06, 2004 1:39 PM > > To: [EMAIL PROTECTED] > > Subject: Request bean is lost > > > > > > Greetings, > > > > I have an action Page.do that gets 3 lists from a database. > > It then places the lists inside a bean which is set in the request. > > The Page.jsp iterates thru the bean to display the data. > > > > The form is posted to the PageSubmit.do. > > But before the PageForm.validate() is executed. > > Assume that an error is found... > > The response is returned > > > > And this is where my bean is lost. > > Why? > > > > I do not want to store thr bean in the HTTP Session. > > > > TIA, > > Glenn. > > --------------------------------------------------------------------- > 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]