摘要:
1、设置JSP文件的编码(jsp文件中的pageEncoding): 2、设置浏览器读取jsp文件的编码(jap文件中content属性): 3、文本编码, (1)统一设置(推荐) (2)设置某一个项目 (3)设置设置单独的文件 注:tomcat8以后默认的字符集是UTF-8 在代码里凡是get提交 阅读全文
摘要:
修改路径:右键点击创建的jsp页面 >Build Path >Configure Build Path > Libraries >Add Libraries >Server Runtime >next >finish 阅读全文
摘要:
方式一: 将web项目配置到webapps以外的目录 在conf/server.xml中配置,找到<host>标签,<Content docBase="E:\yqs\JspProject" path=“/JspProject” />,docBase是实际路径,path是虚拟路径(相对于webapps 阅读全文