struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Taylor" <>
Subject RE: Request bean is lost
Date Tue, 06 Jul 2004 18:39:00 GMT
One solution is to point the input attribute value of the action mapping
to the 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.


> -----Original Message-----
> From: []
> Sent: Tuesday, July 06, 2004 1:39 PM
> To:
> Subject: Request bean is lost
> Greetings,
> I have an action 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
> 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:
For additional commands, e-mail:

View raw message