This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Struts and the fly likes Error with ForwardAction. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error with ForwardAction." Watch "Error with ForwardAction." New topic

Error with ForwardAction.

mihir maniar
Ranch Hand

Joined: Sep 09, 2003
Posts: 88
i get this error message
"javax.servlet.jsp.JspException: Cannot find global ActionForward for name /index"

this is my struts-config file code in the action-mapping tag

<action path="/index"

this is the jsp page from where i call the /action tag

<logic:forward name="/index"/>Go To Index Page.

Please suggest me what could be wrong here.Thank you.
Vasudhaiv Naresh
Ranch Hand

Joined: May 13, 2005
Posts: 57
Hi Mihir,
just try this :

instead of :

If this also doesn't help, have a try of the following :

Hope this helps.
Vasudhaiv Naresh
Ranch Hand

Joined: May 13, 2005
Posts: 57
the last piece of code is

roy joseph

Joined: Dec 26, 2003
Posts: 25
instead of this

<action path="/index"

do this

<forward name="index" path="/jsp/index.jsp"></forward>

be annoying .. Aku Soku Zan
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Error with ForwardAction.
It's not a secret anymore!