MyEclipse------各种问题解决方法

时间:2021-07-11 07:47:29

1.汉化后如何变为英文版:
找到myeclipse.ini文件,改为:language=en
language=zh为中文

2.解决版本不匹配问题:http://blog.sina.com.cn/s/blog_7a0d9dca0100yelt.html
Attribute value request.getParameter("name") is quoted with " which must be
escaped when used within the value

3.抛出异常:java.lang.IllegalStateException: getOutputStream() has already been called for this response
解决方法:http://www.cnblogs.com/jorton/archive/2012/05/04/2482609.html

4.使用
path=request.getRealPath("");
//java.io.File d=new java.io.File(path);
File d=new File(path);
需要加上
<%@page import="java.io.*" %>
<%@page import="java.io.File" %>
<%@page import="com.jspsmart.upload.*" %>
<jsp:useBean id="the" scope="page" class="com.jspsmart.upload.SmartUpload"/>

5.问题:Can not issue data manipulation statements with executeQuery()

http://blog.csdn.net/cherishme1988/article/details/7399225

6.异常:java.lang.IllegalArgumentException: Control character in cookie value or attribute.

http://www.cnblogs.com/stansonwilliam/archive/2012/10/31/2748719.html

设置Cookie时,name=URLEncoder.encode(name,"UTF-8");

读取Cookie时,name=URLDecoder.decode(name,"UTF-8");