Summary of Workarounds for JSP page warnings in eclipse

Source: Internet
Author: User

Well, as long as the developer, such a small thing will always meet, for some of these warning error is not affect the operation of the Code, the corresponding function can be achieved, but always give a less beautiful feeling! If the code is written in accordance with the specification, these problems will naturally disappear, so the idea of solving this kind of problem is a bit like one of the ideas of Chinese medicine-find the place, dredge it, we are to find nonstandard code to standardize it!

Serial number Problem Tip Reference Solutions
1 Invalid location of tag (style). (The style label is not in the same position) Write the corresponding style tag to the head tag
2 Invalid location of the tag (script). (The script tag is not in the same position) Write the corresponding script tag to the head or body tag
3 Invalid Location of tag (form). (The position of the form tag is not valid) The corresponding form label is written outside the table label, and the form tag cannot be nested within the form label.
4 Tag name (fieldset) uses wrong case character. (The label name (FIELDSET) uses the wrong character) Change the large letters contained in the property name to lowercase
5 Attribute name (onfocus) uses wrong case character. (The attribute name (onfocus) uses the wrong character) Change the large letters contained in the property name to lowercase
6 Missing semicolon (missing semicolon) Add an English semicolon after the corresponding statement
7 No start tag (<br>). (no corresponding start tag) Add a corresponding start tag or write a closed label directly
8 No end tag (</a>). (no corresponding end tag) Add a corresponding end tag or write a closed label directly
9 Unknown tag (c). (Unknown label) This is the label you wrote or the wrong one.

There must be other situations, but these are more common, and they are not only for a label, for similar labels appear above the situation, can use the above method to solve! The key point is that as long as we see the red or yellow Place, I think it is not normal to need normalization , and to start analysis and solve it is ok

Summary of Workarounds for JSP page warnings in eclipse

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.