1. Pedigree-servlet
How to associate a URL with a strvlet (. java file)
Shunping said: In XML, the URL first found XML, by the corresponding URL to get the servlet class, and then you can enter a URL to access the URL. or with annotations
Interaction in 2.JSP
Submits data from the form JSP to the servlet, and then the servlet processes it.
Shunping The first example of a contact frame is the URL---the servlet.
3. How to interact with the first struts framework
First step: Create a foreground page
Step Two: Pass the input data to the background
Struts2 action How do I get the form value of a JSP page?
So the name above = "Password" is the key
action= "Login.action" to find the action class by using the following configuration file
Web. Xml to configure and transfer the process to struts
Step three: Processing classes
Fourth step: In Struts.xml, configure what to do after the action class is completed
Fifth Step: Login to the successful page
The essence of Java Enterprise Development is how the foreground background interacts-how each object interacts and communicates-how the program executes