struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hajime Ohtoshi" <>
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 

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

View raw message