关于include??
2个include语句,无论那一条都好用,可是同时写却出现错误,
这是怎么回事啊?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>我的主页</title>
</head>
<body>
<%@ include file="a.html" %>
<%@ include file="b.html" %>
</body>
</html>
错误如下:
Error: 500
Unable to compile class for JSP
a.html and b.html全文如下:
<%
String Msg = "This JSP test.";
out.print("Hello World!");
%>
<h2><%=Msg%></h2>