This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman 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 Elasticsearch in Action this week in the Big Data 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
wood burning stoves
subject: Error with ForwardAction.