You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "M. Amin" <am...@imkenberg.net> on 2001/04/30 21:42:06 UTC

The mapping does not occurr

Dear All,
 I'm using velocity integrated with struts and i have a trouble regarding
action mapping :
 In struts-confing.xml i defined the following mapping :

<form-beans>

    <!-- Logon form bean -->
    <form-bean      name="logonForm"
                    type="com.imkenberg.supplier.logonForm"/>

    <!-- Product form bean -->
    <form-bean      name="productForm"
                    type="com.imkenberg.supplier.productForm"/>

  </form-beans>


  <!-- ========== Global Forward Definitions ============================== -->
  <global-forwards>
    <forward   name="logoff"               path="/logoff.do"/>
    <forward   name="logon"                path="/logon.vm"/>
    <forward   name="success"              path="/mainMenu.vm"/>
  </global-forwards>


  <!-- ========== Action Mapping Definitions ============================== -->
  <action-mappings>



    <!-- Process a supplier logon -->
    <action    path="/logon"
               type="com.imkenberg.supplier.LogonAction"
               name="logonForm"
               scope="request"
               input="/logon.vm">
    </action>

    <action    path="/saveProduct"
               type="com.imkenberg.supplier.SaveProductAction"
               name="productForm"
               scope="request"
               input="/product.vm"/>

    <!-- Redirect rquests -->
    <action    path="/service"
               type="com.imkenberg.supplier.ProductAction"
               name="productForm"
               scope="request">
      <forward   name="success"              path="/product.vm"/>
    </action>
-----------------------------------------------
and i have two forms one for /logon and the other /saveProduct paths
the /logon redirect successfully to the target .vm file but for the
/saveProduct form i got the following error :
 file /saveProduct.do did n't exist although i defined the approciate action
class but no mapping redirect to that action class.
I do n't what's wrong with my configuration.

Any help will be appreciated.

Regards,
 M. Amin