struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mufaddal Khumri <>
Subject Application, Session, Request - Struts2 related ..
Date Thu, 10 Jan 2008 20:11:09 GMT

Struts2 actions can implement one or all the interfaces to become  
Application, Session, Request aware. Struts2 then basically injects  
all the attributes in that particular scope in a map in your action.

Have 3 questions so far:

Que 1. Since these actions have their own copy of lets say the  
application attributes. At some pt while this action instance is  
alive some code may put in a new application attribute. Does this get  
injected in the action instance whose map was set already as well?

Que 2. Are their performance implications to be kept in mind since  
now action instances are not shared per request and each instance has  
its own copy of the attributes ?

Que 3. Since interceptor instances are shared across requests (please  
correct me if i am wrong). Is it more useful to make your interceptor  
Application or Session Aware and have the application and session map  
in the interceptor rather than in the Action?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message