top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between session scope and request scope when saving FormBean

+8 votes
368 views
What is the difference between session scope and request scope when saving FormBean
posted Feb 9, 2014 by Neeraj Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

In the request scope the ActionForm is available only at the end of the request/response. When response has been received by the client, than you can not access more data. If you want to keep the form data around for longer, than a single request you can have ActonForm in session scope. By default the actionform is in session scope until unless you define scope.

When the scope is request,the values of formbean would be available for the current request. when the scope is session,the values of formbean would be available throughout the session.

answer Feb 11, 2014 by Salil Agrawal
...