You will need to add the Action mapping in your struts-config.xml file. You will also need the form-bean mapping that your form will use to pass the form data to the action class.
Here is an example.
<form-beans> <!-- Loin form bean --> <form-bean name="loginForm" type="com.dextera.examples.forms.LoginForm"/> </form-beans>
<action-mappings> <!-- Process a user login --> <action path="/login" type="com.dextera.examples.actions.LoginAction" name="loginForm" scope="request" input="/login.jsp"> <forward name="success" path="/home.jsp"/> </action-mappings>
All in all you will need the following:
1. A form bean to carry the data 2. Action servlet to perform your action 3. Form bean declaration in struts-config 4. Action mapping in struts-config
if you modify the struts-config.xml,restart tomcat5 Good luck.