JSP application JavaBean

Source: Internet
Author: User
Today I wrote a module to dynamically manage the drop-down menu function.
The JavaBean technology is used when adding implementations.
It was used in the past, but there was no problem with it. Today it is not easy to use.
Later, I carefully sorted it out from the beginning and found that a problem was ignored,
Record it, and record the points worth attention to avoid further attacks:
1. On the JSP page for adding features, the name of the parameter must be passed with the database,
Or the field names in the bean you write are the same. Otherwise, the parameter cannot be passed. For example:
<Input type = "text" name =" Dynamic_name ">
Dunamin_name is a field defined in bean.
2. When processing the Java page for adding functions, Bean must be
Set parameters. Example
<JSP: usebean id = "B" Class = "business. menucharge. Base. Name" Scope = "page">
<JSP: setproperty name = "B" property = "*"> </jsp: setproperty>
</Jsp: usebean>
These two are discovered today, and will be added later
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.