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:
Action1.java:
struts-config.xml:
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 ]
moved from Servlets -> Frameworks ( aka: the Struts forum)
Adam Hardy
Ranch Hand
Joined: Oct 09, 2001
Posts: 564
posted
0
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.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.