When we say we have declared our form bean in session scope, few questions arise :
NOTE : A session is per client.
Assumptions :
a)Form bean object is in session.
b)In reset() method, we access the fields of form bean object, that is there in session.
Q-1) When is this session created and destroyed ?
Q-2) Will reset() method will be called for each user request? Is yes, then we usually reset the field values in reset(), then how come these values will be available throughout session ?
Q-3)are request scope attribute values are available after validate() method ?
1 Answer