struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <jmi...@gmail.com>
Subject Re: Sharing the action form by different actions
Date Thu, 06 Apr 2006 14:45:53 GMT
On 4/6/06, Carl Smith <ccsmith20002001@yahoo.com> wrote:
> It is practical to share the same action form by different
> actions, For example (I only listed two actions sharing the same form here,
> but the questions apply for multiple actions sharing the same form):
>
>   <form-bean name ="sharedForm" type="myclassPath.SharedForm"/>
>
>   <action path="/displayViewAction" type="myclasspath.DisplayViewAction"
> scope="session" name="sharedForm" validate="false">
> </action>
>
>   <action path="/saveDataAction" type="myclasspath.SaveDataAction"
> scope="request" name="sharedForm" validate="true" input="/View.jsp">
> </action>

http://wiki.apache.org/struts/DataEntryForm

> Then the question is:is it a good practice to set up the sharedForm into different
> scope(session or request) for different actions, as what was shown in the above example?

No.

Michael.

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


Mime
View raw message