struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hajime Ohtoshi" <hohto...@fides.dti.ne.jp>
Subject Why only one instance of Action?
Date Thu, 01 May 2003 11:06:59 GMT
Hi, this is Hajime.

Simple question.

Struts seems to create only one instance of Action for each 
request when I make first call to this request.

After first call, struts seems to re-use the instance of Action 
made at the first time to perform the request.

It must be much more useful to create new instance of Action
for each request, even if the request is same as before.
Because, thus, Action could have STATE of its own..

How about holding Constructor or Class object to create new 
Action instead of holding created instance of Action and re-using 
them.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message