Java-JSP & JavaBean

Source: Internet
Author: User

According to the general development mode, web applications can be divided into three layers: web layer, business layer, and data access layer. That is to say, the MVC (model, view, control) mode.

In this mode, JSP is only responsible for displaying data and dealing with client users. servlet is responsible for data collection and page forwarding.

Each page accessed by the user is forwarded by sevlet.

 

You must specify a bean for the from form on the JSP submission page to store data.
The data access layer must also specify a JavaBean for each type of data to decouple each level.

When Serlvet obtains form submission data, it first converts the request data to frombean. After a series of verification and other actions, it converts frombean into a database access bean.

// Copy webutils. copybean (formbean, user) of bean );
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.