Beginner struts
Learning Struts for a long time, but I still feel that my confused, especially the relationship between ActionServlet, action, and Actionform is difficult to figure out, and how Struts is running, it is also very confused.
Summary some experiences are provided to everyone, I am a place where beginners is inevitable. I hope everyone will correct it.
A separate action servlet is provided in the STRUTS framework. It actually acts as a controller role, responsible for processing browser requests, but do not perform any specific exercises, the specific operation is done in the subclass of the Action.
First, apply the Struts framework system, and must map with some URL-Pattern to the Action Servlet in the web application configuration file Web.xml. Such as
Web.xml
-------
servlet-maping>
---------
The above code, you can modify * .do is other suffixes, such as * .asspx, the corresponding you want to modify your form action, such as