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