Solved the problem by having the target action intercept check for a request.getAttribute("important") before it checked for a request.getParameter("important").
That way I can do something like this: request.setAttribute("important","make sure you visit http://java.sun.com/products/jsp" ); return mapping.findForward("nextStrutsAction" ); -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ "Mathematics is essentially the study of islands of ======= disparate subjects in a sea of ignorance." || ! || Andrew Wiles _____________ ---------------------------------------- Message History ---------------------------------------- From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 04/12/2001 12:17 Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject: struts action multiplexing I want to multiplex struts actions. I have a typical central Struts Action that responds to multiple HTML Submit Button and provided my own mapping to the behaviour or business logic within the same action class. How ever I want to forward to another struts action with its own action form. Unfortunately I find that ActionServlet seems to populating the target action form with the wrong parameters. I discovered this is because the bean populate work with `request.getParameter(...)'. This is quite correct. So my target multiplexing is sometimes messed up because it is impossible to override the servlet request parameter. How can I get around this problem? Can a request dispatcher accept servlet CGI parameters? mapping.findForward( "handleThis?parameter=one¶meter=two" ); I dont think so at first, becausethe Servlet Spec says you pass request attributes ie. `request.setAttribute(...)'. The other way would be the locate the action yourself without using request dispatcher mechanism and then call the action directly. Can this be done? -- Peter Pilgrim ++44 (0)207-545-9923 //_\\ "Mathematics is essentially the study of islands of ======= disparate subjects in a sea of ignorance." || ! || Andrew Wiles __________________________/\________/\__||_!_||__ -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>