Try
<global-forwards>
  <forward   name="logon"                path="/do/logon.do"/>
</global-forwards>

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 8:25 AM
Subject: Exception: Cannot retrieve mapping for action


> Hello,
>
> I have the following Strut-Config file.
>
>   <!-- ========== Form Bean Definitions
===================================
> -->
>   <form-beans>
>
>     <!-- Logon form bean -->
>     <form-bean      name="logonForm"
>                     type="com.mlsbuyer.logonform"/>
>   </form-beans>
>
>
>
>   <!-- ========== Global Forward Definitions
==============================
> -->
>   <global-forwards>
>     <forward   name="logon"                path="/do/logon"/>
>   </global-forwards>
>
>
>   <!-- ========== Action Mapping Definitions
==============================
> -->
>   <action-mappings>
>
>     <!-- Process a user logon -->
>     <action    path="/logon"
>                type="com.mlsbuyer.logonaction"
>                name="logonForm"
>               scope="request"
>               input="/WEB-INF/pages/logon.jsp">
>                 <forward name="home"    path="/WEB-INF/pages/home.jsp"/>
>                 <forward name="logon"   path="/WEB-INF/pages/logon.jsp"/>
>     </action>
>
> My web.xml maps the action to /do/* like below.
>
>   <!-- Standard Action Servlet Mapping -->
>   <servlet-mapping>
>     <servlet-name>action</servlet-name>
>     <url-pattern>/do/*</url-pattern>
>   </servlet-mapping>
>
> My pages are all located under the WEB-INF directory to prevent prying
eyes
> from looking at the JSP code.
>
> The main index checks to see if you have logon to the system and if not
> forwards you to the logon page as follows:
>
> <logic:notPresent scope="session" name="user">
>   <logic:forward name="logon"/>
> </logic:notPresent>
>
> When the forward is called I keep encountering an exception:
>
> javax.servlet.ServletException: Exception forwarding for name logon:
>
>           javax.servlet.ServletException: Cannot retrieve mapping for
action
> /do/logon
>
> What am I missing here?
>
> Thanks for your assistance.
>
> Regards,
>
> Todd G. Nist
> Email:   [EMAIL PROTECTED]
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to