Two Laptop Bag*
The moose likes Struts and the fly likes Action class constructor - is it called every time ,,,,,, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action class constructor - is it called every time ,,,,,," Watch "Action class constructor - is it called every time ,,,,,," New topic
Author

Action class constructor - is it called every time ,,,,,,

s mahen perera
Ranch Hand

Joined: Mar 08, 2005
Posts: 101
Hi all

I want to know whether the Action class constructor is called every before the execute method is called when a request come to a Action class.
In otherwords,,, is the same action class instance used for all request? or execute methods of different instances of the action class are called for each request?

Thanks
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
http://struts.apache.org/api/org/apache/struts/action/Action.html


-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Action class constructor - is it called every time ,,,,,,