You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hari Om <ha...@hotmail.com> on 2003/10/06 19:10:48 UTC
Cannot find global ActionForward for name
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!
_________________________________________________________________
High-speed Internet access as low as $29.95/month (depending on the local
service providers in your area). Click here. https://broadband.msn.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org