Introduction to the JSP form automatic data validation component

Source: Internet
Author: User
Tags file upload html form
js| data

There are a lot of things to deal with from JSP to servlet or action: Data validation includes JavaScript validation of JSP pages and server-side validation, processing of file uploads, file upload size control, prevention of two submissions, multipart The processing of a form's non-file field. These things do not belong to the JSP or the action, and our developers will take these things directly to the JSP or to the action process, of course, if the MVC framework is used to develop, some MVC framework contains the processing of this part. The more famous are the Formbean and webwork interceptors with struts, but this part is closely tied to their own web framework and needs to be configured for data validation, but it also adds to the developer's focus. We have to focus on verifying the unity of the configuration file and the JSP form, and the original functionality is not very powerful, and a lot of trouble still needs to be handled by hand code. We emphasize that the focus on JSP pages should be concentrated in the JSP, JSP finished this part of the content should also be completed, but the prerequisite is not to increase the workload of JSP, and to change the role of JSP assumed.

We keep doing regular things by hand, constantly writing JavaScript to validate form data, writing server-side data validation in action or elsewhere, or using smartupload to process file uploads, and compute complex upload paths and file names. In fact, these things can be done automatically, without a line of code.

JVF is a set of tags, which is precisely a label, he removed the shortcomings of the label, leaving the advantages of the label. Because the JSP page uses the label to cause the Dreamwave and so on the visual editor to the page to be difficult directly edits, to the page processing difficulty, but JVF does not have this question. In the example, you will see that the form written by JVF is a perfectly standard HTML form.

and the adoption of JVF will unify this process, JVF is just a component, there is no dependency, as smartupload as easy to use, but the function is very powerful

You can use this address (example) to view JVF simple and powerful examples



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.