On 10/06/2003 01:10:48 PM "Hari Om" wrote: > 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">
This is a guess, but does it work if you don't put the "type" attribute (above) in your <global-forwards/> tag? You define the individual types within your <action/> mapping definitions (below). Seems like you are defining it in two places, but not sure if that makes any difference. Other than that, your definitions look similar to mine. Oh, wait a minute, unless its a type, in your <action mappings> you have <action path="/welcome.do".../> which should probably be <action path="/welcome".../> HTH, Susan Bradeen > <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.ja > va: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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

