Solution to the garbled problem of include static html in the jsp page, jspinclude

Source: Internet
Author: User

Solution to the garbled problem of include static html in the jsp page, jspinclude

This problem has occurred twice. It was not recorded last time, and today it has appeared again. However, the two scenarios are not completely consistent.

The solution for finding this article through a search today is good for your reference. The original blog address is http://blog.csdn.net/izgnaw/article/details/6178472.

Add the following code to web. xml:

  1. <! -- Control jsp: include encoding -->
  2. <Jsp-config>
  3. <Jsp-property-group>
  4. <Description>
  5. Special property group for JSP Configuration HTML
  6. Example.
  7. </Description>
  8. <Display-name> JSPConfiguration </display-name>
  9. <Url-pattern> *. html </url-pattern>
  10. <El-ignored> true </el-ignored>
  11. <Page-encoding> UTF-8 </page-encoding>
  12. <Scripting-invalid> false </scripting-invalid>
  13. <Include-prelude> </include-prelude>
  14. <Include-coda> </include-coda>
  15. </Jsp-property-group>
  16. </Jsp-config>

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.