how does tomcat like web container handle struts 2 variables ?

Posted by mobby1982 on Stack Overflow See other posts from Stack Overflow or by mobby1982
Published on 2010-05-26T20:51:46Z Indexed on 2010/05/26 21:11 UTC
Read the original article Hit count: 132

Filed under:
|
|

i am a newbie . i have a question regarding struts 2 framework and tomcat . i know that each request has it own thread , but my question is are the global variables defined in struts action shared amongst requests. for ex: if i have a global variable named say int pageNo; and i am using in say method called paginationAll() can i use the same variable (pageNo) for another method called say paginatonMaterialAll() in the same action or does each thread has its own set of variables even though globally defined?

© Stack Overflow or respective owner

Related posts about java

Related posts about tomcat