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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -