Cannot find global ActionForward for name /pages/welcome

H

Hari Om

I am using Tomcat 4.0 and Struts 1.1

My struts.XML file is:
-------------------------------------------------------------------------------------------------------------------------------------------
<struts-config>
<form-beans>
<form-bean name="LogonForm" type="app.LogonForm" />
</form-beans>

<global-forwards type="org.apache.struts.action.ActionForward">
<forward name="logoff" path="/logoff.do" />
<forward name="logon" path="/logon.do" />
<forward name="welcome" path="/welcome.do" />
</global-forwards>

<action-mappings type="org.apache.struts.action.ActionMapping">
<action path="/welcome.do"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/welcome.jsp" />
<action path="/logon"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/logon.jsp" />
<action path="/logonSubmit" type="app.LogonAction"
name="logonForm" scope="request" validate="true"
input="/pages/logon.jsp">
<forward name="success" path="/pages/welcome.jsp" />
</action>
<action path="/logoff" type="app.LogoffAction">
<forward name="success" path="/pages/welcome.jsp" />
</action>
</action-mappings>
</struts-config>
-------------------------------------------------------------------------------------------------------------------------------------------

My index.jsp file is (should forward to welcome.jsp) :
-------------------------------------------------------------------------------------------------------------------------------------------
<%@ taglib uri="/WEB-INF/lib/struts-logic.tld" prefix="logic" %>
<logic:forward name="welcome"/>
-------------------------------------------------------------------------------------------------------------------------------------------

index.jsp is on root location ie C:\logon\index.jsp and welcome.jsp is
stored in C:\logon\pages\welcome.jsp

I execute my applicaiton as http://localhost:8080/logon/index.jsp and
I get following error - wonder why:
-------------------------------------------------------------------------------------------------------------------------------------------
javax.servlet.ServletException: Cannot find global ActionForward for
name /pages/welcome
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)

-------------------------------------------------------------------------------------------------------------------------------------------


Any information on how to get rid of this....?

THANKS!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top