Form bean scopes in struts -
Form bean scopes in struts -
when have declared our form bean in session scope, few questions arise : note : session per client. assumptions : a)form bean object in session. b)in reset() method, access fields of form bean object, there in session.
q-1) when session created , destroyed ? q-2) reset() method called each user request? yes, reset field values in reset(), how come these values available throughout session ? q-3)are request scope attribute values available after validate() method ?
the container responsible session management. for each request action uses given form. because fields aren't reset; it's deal checkbox defaults, although there other uses. of course; otherwise values wouldn't available in action.
struts
Comments
Post a Comment