JSP:Invalid character constant

代码:

<%
    out.print('abc');
%>

报错信息:

An error occurred at line: 27 in the jsp file: /tunps.com/emp_import.jsp
Invalid character constant
25: 
26: <%
27:     out.print('abc');
28: %>
29: 
30: 

原因:单引号修改为双引号,这是Java字符串,不是PHP!!!!!!!!!!!!!!!!!!!!!!!!!!= =#

标签: JSP

添加新评论