Friday, February 2, 2007

When we are saving form bean, what is the difference between ?

a) When the scope is request, the values of form bean would be available for one the current request. When the scope is session, the values of form bean would be available throughout the session.

b) If you are using request scope the Action Form is available only until the end of the request/response cycle. One the response has been returned to the client the action form and the data within it are no Langer accessible. if u want to keep the form data around for langer than a single request your can fonfig an Acton form to have session scope.

SOURCE : www.referjava.com

No comments: