Here it is, I am developing a small program that utilizes Struts, Java and Apache Velocity Templates. I amm trying to move from one page to another via struts. Every time I try to move to another page I get a 404 Error in Tomcat. Here is my struts-conf.xml file as well as my web.xml file. Could someone please tell me what is wrng with it.

<struts-config>
       <form-beans>
               <form-bean name="infoForm" type="forms.InfoForm">
       <form-beans>
       <action-mappings>
               <action         path="/PersonalInfo"
                               type="actions.InfoAction"
                               name="infoForm">
                       <forward name="success" path="/info.vm" />
                       <forward name="failure" path="/menu.vm" />
               </action>
       </action-mappings>
<struts-config>

<web-app>
       <display-name>Personal Information</display-name>
       <servlet>
               <servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
               <init-parm>
                       <parm-name>config</parm-name>
                   <parm-value>/WEB-INF/conf/struts-conf.xml</parm-value>
               </init-parm>
               <load-on-startup>2</load-on-startup>
       </servlet>
       <servlet>
               <servlet-name>velocity</servlet-name>
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
               <load-on-startup>10</load-on-startup>
       </servlet>
       <servlet-mapping>
               <servlet-name>velocity</servlet-name>
               <url-pattern>*.vm</url-pattern>
       <servlet-mapping>
               <servlet-name>action</servlet-name>
               <url-pattern>*.do</url-pattern>
       </servlet-mapping>
</web-app>

The servlet-class for "action" is not the same class for where my servlet is located. Anonther thing that I don't understand is the *.do url-mapping If anyone can explain that to me that would be great.

Thanks

Paul

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

Reply via email to