How can Web applications achieve efficient maintenance?

Source: Internet
Author: User

Recently, I want to write a domain name maintenance system that requires Web development. How can I efficiently maintain web applications?

 

I searched the internet. The suggestion of a cool man is:

 

In the client, the specified action is "login. do "to". the page ending with do is on the web. which requests specified in the XML file will be submitted to the actionservlet. In the above article, I talked about a lot of struts execution mechanisms that may not be well understood. The following uses the logon example as an example to explain how struts implements an execution process.

1. When Tomcat is started, according to the value in the <loadon-on-startup> tag in the configuration file, actionservlet is instantiated with Tomcat startup.

2. After the actionservlet is instantiated, The struts-config.xml file will be loaded and the configuration information in the file will be read into the memory as a key-value pair.

3. when a login page is submitted, because the action of the page ends. do ends (that is, it fits in the web. the condition specified by the struts specification in the XML file, which is simply as long as the request is. do ends with Struts constraints.) The request will be submitted to the actionservlet.

4. after the request is submitted to actionservlet, actionservlet first intercepts the URL. do remove), and then find the corresponding path in the struts-config.xml that has been loaded into the memory according to the truncated path, and instantiate the specific actionform object and realaction object configured in the configuration file, meanwhile, the form information is assigned to the actionform object.

5. after finding the real request class loginaction Based on the Type attribute in the configuration file, the class completes various operations of the business logic, and finally returns the actionforward object to the actionservlet, finally, actionservlet find the corresponding jump page from the struts-config.xml file according to the returned situation to achieve unified control of page navigation.

 

Source:How can Web applications achieve efficient maintenance?

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.