But when you forward the request from one action to another with a "mapping.findForward( )" doesn't this have the effect of passing an existent request object directly from one action to the other? And isn't the ActionForm contained within the request object?
----- Original Message ----- From: "James Mitchell" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 11:14 AM Subject: RE: Forwarding to an Action and changing the ActionForm data > Your ActionForm's are reconstituted from the request with each action. > This is by design, since the forward is occuring within the container, > there is no way for Struts to know that you just forwarded from a > previous action. > > Try setting your form at Session scope. > > > -- > James Mitchell > Software Engineer/Open Source Evangelist > http://www.open-tools.org > > "C makes it easy to shoot yourself in the foot; C++ makes it harder, but > when you do, it blows away your whole leg." > - Bjarne Stroustrup > > > > -----Original Message----- > > From: Max Kremer [mailto:[EMAIL PROTECTED]] > > Sent: Friday, December 27, 2002 2:38 PM > > To: Struts Users Mailing List > > Subject: Forwarding to an Action and changing the ActionForm data > > > > > > Hello, > > > > Here's my problem, I have two Actions, both use the same > > form bean as > > follows from the config: > > > > <action path="/createnew" type="PartCreateAction" > > name="partListForm" > > scope="request" input="/NewPart.jsp" /> > > > > <action path="/partlist" type="PartListAction" name="partListForm" > > scope="request" input="/MainMenu.jsp" /> > > > > I start with first action and then always forward to the > > second. In the > > first action I change some of the form bean properties by > > calling its setter > > methods before I forward to the second action. However, the > > second action > > doesn't see the changes I made to the form bean > > properties.Why? Aren't they > > both using the same instance of the form bean for the duration of the > > request????? If not, how do I accomplish this? > > Please help. > > > > Thanks , > > MAX > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:struts-user-> [EMAIL PROTECTED]> > > For > > additional commands, > > e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > - > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

