This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts forward question" Watch "Struts forward question" New topic

Struts forward question

Geoffrey Falk
Ranch Hand

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


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 '/' and path info 'null' and update=true"
What does path info 'null' mean?
Thanks for your help.
[ 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: 567
Hi Geoff,
presumably your 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?

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:
subject: Struts forward question
It's not a secret anymore!