Eclipse encoding, Tag language get root directory

Source: Internet
Author: User

1. Set the Working Space encoding method:

Window-->preference-->general-->workspace to set the text file encoding to change the encoding mode to UTF-8

2. Set the encoding method of JSP file, the default is latin-1, is not supported in Chinese.
Window-->preferences-->web--> JSP Files in the selection of encoding, the encoding method is changed to UTF-8.

3. Modify common file Encoding method
Window-->preferences-->general--and content types Choose HTML, java, CSS JSP json all to UTF-8

4. Modify common file Default File open
window-->preferences-->general-->editors--> file Associations Select *.html, *.htm,*.jsp Modify to default editing mode

<%request.setattribute in JSP ("CTX", Request.getcontextpath ()); %> Java language

Equivalent to

<c:set var= "CTX" value= "<%=request.getcontextpath ()%>" scope= "request"/> Tag language

Eclipse encoding, Tag language get root directory

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.