Hi, i have trid two ways, and both at the same time:
1) I have modified the form, and now the method reset() only executes or not depending a boolean flag that the first action clears. 2) I set the attribute in the request with the same name that it comes from the URL, I supposed that if the data is requested again of the URL it would be settled right, but it doesn?t work. I imagine only can be one object in the request with the same name. Is the same request object in the first action and the second? or is it recreated? Thks > -----Mensaje original----- > De: Andrew Hill [mailto:[EMAIL PROTECTED] > Enviado el: viernes, 12 de septiembre de 2003 14:46 > Para: Struts Users Mailing List > Asunto: RE: DispatchAction forward issue > > > Hmm.. You can try it with a non-redirecting action. Im not > sure how well it > will work though as there may still be the original method > parameter in the > request as well as the one you tack onto the url. Give it a > shot and see > how. > > btw: you know that if you chain actions the form will get reset and > repopulated right? > > -----Original Message----- > From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] > Sent: Friday, 12 September 2003 20:37 > To: 'Struts Users Mailing List' > Subject: RE: DispatchAction forward issue > > > Hi, > > so I must understand that it?s not possible to pass > parameters in the > request beetwen chained actions, is it? > Is not there a way to change a parameter value of the > request if both > actions use the same ActionForm? I want to modify one of the > parameters in > the firs action, so second action (chained action) can see the change. > > Although I know it may be a bad idea, I don?t have any > other now!! :-( > > Thks > > > > > > -----Mensaje original----- > > De: Andrew Hill [mailto:[EMAIL PROTECTED] > > Enviado el: viernes, 12 de septiembre de 2003 13:39 > > Para: Struts Users Mailing List > > Asunto: RE: DispatchAction forward issue > > > > > > <snip> > > For that, I put in my request the "method" parameter > > </snip> > > > > No you didnt. You put in a "method" ATTRIBUTE. I saw you! > > See: > > <snip> > > request.setAttribute("method", "list"); > > </snip> > > > > What you want to do is something like the following: > > ActionForward forward = actionMapping.findForward("do_edition"); > > String path = addParam(path,"method","list"); > > return new ActionForward(path, forward.getRedirect() ); > > > > (btw: that should be a redirecting forward (unless you have a > > very good > > excuse for chaining actions - something that is considered a > > bad idea in > > general)) > > > > You addParam method might look something like: > > > > public String addParam(String url, String parameter, String value) > > { > > return url + ( (url.indexOf("?")==-1) ? "?" : "&" ) + > > parameter + "=" + > > value; > > } > > > > > > -----Original Message----- > > From: Nicolas Delsaux [mailto:[EMAIL PROTECTED] > > Sent: Friday, 12 September 2003 19:28 > > To: [EMAIL PROTECTED] > > Subject: DispatchAction forward issue > > > > > > Hi, I'm using a dispatchaction for displaying/editing > > objects, on which I > > would like to do a forward, through an ActionForward, from an > > other action. > > For that, I put in my request the "method" parameter, that should be > > interpreted (for what I know) by Struts, in ordeer to > > determine the method > > to call. > > And, as you may guess, Struts does not see this mparameter > > and send me the > > following error message : > > > > message Request[/list] does not contain handler parameter > named method > > > > How can I make Struts understand what I want ? > > For your information, here are the involved code fragments : > > > > struts-config.xml > > > > <action path="/list" > > type="com.ListAllFieldsAction" > > name="listAllAttributes" > > scope="request" > > validate="true" > > parameter="method"/> > > > > <action path="/edit_tree_object" > > type="com.EditTreeObjectAction" > > name="edit_tree_object" > > scope="request" > > validate="false"> > > <forward name="do_edition" path="/list.do"/> > > </action> > > > > And, in my EditTreeObjectAction, the execute method contains > > the following > > code : > > > > request.setAttribute("method", "list"); > > return actionMapping.findForward("do_edition"); > > > > Thanks in advance > > > > -- > > Nicolas Delsaux > > > > > > > --------------------------------------------------------------------- > > 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]