[Share] JSP page loading process in struts

Source: Internet
Author: User

In struts, when a JSP file is successfully published on Tomcat, we can access this page. But on the server side, how does the JSP page be loaded?

Step 1: If the <Bean: Message> label exists, the text is read from the resource bundle.

Step 2: the most important thing is that the <HTML: Form> tag first looks for the actionform bean instance from the actionform bean corresponding to its action. If it exists, the bean corresponds to the page element, so the page can be filled. If the bean does not exist (the bean may not have been initialized for the first time when you enter coconut), ignore this operation.

Step 3: Present the JSP page.

In particular, the second step is the key to initializing the page.

It is not difficult, but it is easy to mix with dynamic actionform bean and write it specially for sharing.

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.