Hi,
What is the need of the type argument in the below action tag element in the struts-config.xml file ?
As when when we submitt the form with the specified action path(in this case /LogonSubmit),which translates to LogonSubmit.do and that is already mapped in the web.xml to point to Action Servlet.Then what is the use of the type argument ?
Refer below,
-------In struts-config.xml--------
<action
path="/LogonSubmit"
type="app.LogonAction" what is the use of this argument ?
name="logonForm"
scope="request"
validate="true"
input="/pages/Logon.jsp">
<forward
name="success"
path="/pages/Welcome.jsp"/>
</action>
---------------------------------
-----In web.xml----------
<
servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet
</servlet-class>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>