I did not create a new ActionForward... I attempted to modify the ActionForward I retreived from the findForward method I am trying this way now
-----Original Message----- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 2:34 PM To: Struts Users Mailing List Subject: RE: forwarding to action needing different request parameters I am pretty sure I got this to work. Here's how I remember it: Create a new Actionforward. Set it equal to the path (got from getPath). Then add the params you want and then use setPath. Is this what you did? > -----Original Message----- > From: Nimmons, Buster [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 12, 2004 3:28 PM > To: 'Struts Users Mailing List' > Subject: RE: forwarding to action needing different request parameters > > > I tried this and got the following exception > > java.lang.IllegalStateException: Configuration is frozen > at > org.apache.struts.config.ForwardConfig.setPath(ForwardConfig.java:208) > > at > com.sbec.folderview.po.actions.UploadPoDocument.perform(Upload > PoDocument.jav > a:80) > > -----Original Message----- > From: Geeta Ramani [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 12, 2004 1:59 PM > To: Struts Users Mailing List > Subject: RE: forwarding to action needing different request parameters > > > I think you can do this: get the ActionForward object as > usual. Then use the > ActionForward's getPath and setPath methods to add the rest > of your params > as query string parameters to the original path. This I am > pretty sure will > work. > > But if you want to look at a nicer solution, maybe the > RequestProcessor may > have something to do this.. (I am not sure of this since I > have not done > it.) > > regards, > Geeta > > > -----Original Message----- > > From: Nimmons, Buster [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, May 12, 2004 2:56 PM > > To: Struts2 (E-mail) > > Subject: forwarding to action needing different request parameters > > > > > > I have an Action which is usualy accessed from an html form > page... It > > requires 4 request parameters. I need to forward to this > > action from another > > action but the action I'm forwarding from does not have all 4 > > of the reuired > > request parameters. I know what the value of the parameters > > should be but I > > cannot put them in the request scope unless I use > > request.setAttribute() > > however the action being forwarded to is not looking for > the required > > parameters from the Attributes but the requestParametes.. has > > anyone figured > > out an easy way to modify the available requestParameters > > before forwarding > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]