Thank you, I realize that the *.do will work, I had it that way initially.
However, I was reviewing the "Artimus" example by Ted Husted and liked how
he had the URL mapping setup and the struts-conf.xml file so I thought I
would give it a try.  But so far, it has not worked at all in my
application, but works just fine in the example and I can not see where the
difference is at.

Again, thanks for the reply.

Regards,

Todd

-----Original Message-----
From: Chilakala, Laxminarsimha [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: Exception: Cannot retrieve mapping for action


try using 



<servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>/*.do</url-pattern>
  </servlet-mapping>


instead of

<servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>/do/*</url-pattern>
  </servlet-mapping>

LN

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:26 PM
To: [EMAIL PROTECTED]
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]>

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

Reply via email to