The essence of Java Enterprise Development is how the foreground background interacts-how each object interacts and communicates-how the program executes

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.