![]() |
#2
chenghantao2006-11-19 01:39
服务器是这么报错的: -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 16 in the jsp file: /3_2.jsp org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
Apache Tomcat/5.0.28 |
<html>
<head>
<title>JSP转义规则的例子</title>
</head>
<%@ page contentType="text/html;charset=GB2312" %>
<body>
<p>
<%
out.print("测试要避免冲突的字符串1:\' ");
%>
<p>
<%
out.print("测试要避免冲突的字符串2:\" ");
%>
<p>
<%
out.print("测试要避免冲突的字符串3:\\" ");
%>
<p>
<%
out.print("测试要避免冲突的字符串4: %\> ");
%>
</p>
</body>
</html>