jsp出错...实在看不出哪点错的.

来源:百度知道 编辑:UC知道 时间:2024/09/22 14:36:01
An error occurred at line: 20 in the jsp file: /AccepteUploadFile.jsp
Generated servlet error:
Invalid character constant

第20行是<% String tempFileName=new String("tempFileName1");

请问各位前辈们.这行有错么????怎么会呢

如果你这样写是错的话,那么试试我的:
<%!String tempFileName=null;%>
<%tempFileName=new String("tempFileName1");%>

查检一下有没有全角符号。

不一定是这行,报错经常不是很准确的