top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+8 votes
57 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...