This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
In Struts, I can forward from an Action to a JSP. But how do I get an Action to forward control to another Action? I am trying to chain several actions together before finally invoking a JSP. My code looks like this: invoker.jsp:
Am I doing this right? When I invoke action1 from invoker.jsp, I get an Error 500 which says, "Cannot get request dispatcher for path null". The Tomcat log file says, "2002-10-18 16:51:34 StandardContext[/portal]: Mapped to servlet 'action' with servlet path '/action2.do' and path info 'null' and update=true" What does path info 'null' mean? Thanks for your help. Geoffrey [ October 18, 2002: Message edited by: Geoffrey Falk ]
Hi Geoff, presumably your Action2.java looks like this:
What version of struts have you got? Also you don't need to specify the input attribute for the mapping unless attribute validation=true You have specified the form-beans in struts-config as well? Adam
I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.