aspose file tools*
The moose likes Struts and the fly likes Struts forward question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts forward question" Watch "Struts forward question" New topic
Author

Struts forward question

Geoffrey Falk
Ranch Hand

Joined: Aug 17, 2001
Posts: 171
    
    1
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 ]

Sun Certified Programmer for the Java 2 Platform
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

moved from Servlets -> Frameworks ( aka: the Struts forum)
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Struts forward question