File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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 agree. Here's the link:
subject: Error with ForwardAction.