关于include??

rainman2001 2001-12-26 04:56:45

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>
...全文
49 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
tncboy 2001-12-26
  • 打赏
  • 举报
回复
你去掉b.html
中的 String Msg="This JSP test.";
看看
bzszp 2001-12-26
  • 打赏
  • 举报
回复
没错误呀
colababy 2001-12-26
  • 打赏
  • 举报
回复
程序似乎没错误呀

你的 路径 错了吧?

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧