Session vs. Request Scope

Scope specifies the scope of the form bean that is bound to the describes Action..
You are using request scope the values of form bean would be available for one the current request.One the response has been returned to the client the actionform and the data within it are no langer accessible.but
In the session , the values of form bean would be available throughout the session.

Example :-


<action input="/login.jsp" name="LoginForm" path="/Login" scope="session" type="com.wisedeveloper.LoginAction">
In this example, scope is set session so the values of form bean would be available throughout the session.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More