File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find global ActionForward for name index

 
Mark Kafe
Ranch Hand
Posts: 60
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Any body can help me out in dis problem???

javax.servlet.ServletException: Cannot find global ActionForward for name /index
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

and my globel actions is

<global-forwards>
<forward name="/index" path="welcome.do"/>
</global-forwards>

<action-mappings>

<action path="/welcome" type="com.seantech.marketree.actions.WelcomeAction">
<forward name="success" path="page.welcome"></forward>
</action>



and jsp pages is where i call this action

<logic:forward name="index"/>
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you're calling it two different things: "/index" and "index". Start there.

Please UseCodeTags.
 
Mark Kafe
Ranch Hand
Posts: 60
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir if i call it same then it also create this error

here my code is




and the index jsp pages where i call this actions.......is




but same errors are


javax.servlet.ServletException: Cannot find global ActionForward for name index
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Kafe wrote:


and the index jsp pages where i call this actions.......is



http://www.coderanch.com/t/420300/Struts/Why-Cannot-find-global-ActionForward
 
Lovelesh Sharma
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i am also getting the same problem here n not getting any solution of this. Can sbdy give me any idea to rsolve this?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic