JSP specification _javabean

Source: Internet
Author: User
  • What is JavaBean

Bean from the practical value is to be used as a data model, that is, to render the template of the JSP page, when the business code and JSP code to separate, improve the view and processing code reuse, that is, the so-called MVC design ideas, more in line with the industrialization trend. When the programmer uses the bean in the JSP, the bean specification is reflected, for example, when the Jsp:usebean will find the corresponding set method according to the property. Too familiar, no longer repeat.

  • Using JavaBean in JSP
  1. <jsp:usebean id= "xx" scope= "request" class= "Xxbean" >

When the JSP resolves the tag, it is created in a member variable (similar) in the corresponding servlet.

JSP specification _javabean

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.