File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error with ForwardAction.

 
mihir maniar
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
type="org.apache.struts.actions.ForwardAction"
parameter="jsp/index.jsp"/>


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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mihir,
just try this :

instead of :


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


Hope this helps.
Regards,
Naresh
 
Vasudhaiv Naresh
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,
the last piece of code is

 
roy joseph
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
instead of this

<action path="/index"
type="org.apache.struts.actions.ForwardAction"
parameter="jsp/index.jsp"/>

do this

<global-forwards>
<forward name="index" path="/jsp/index.jsp"></forward>
</global-forwards>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic