Tomcat配置问题求助!
配置完成后,运行程序下面提示,请高手帮忙分析一下哪里问题,是否Jdk和tomcat的版本不对,谢谢!程序文件:
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page import="java.util.*"%>
<HTML>
<BODY>
<P>
现在的时间是:
<% Date date=new Date();
%>
<BR>
<%=date%>
</BODY>
</HTML>
提示错误信息如下:
HTTP Status 500 -
--------------------------------------------------------------------------------
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: 9 in the jsp file: /time.jsp
Syntax error on tokens, delete these tokens
6: 现在的时间是:
7: <%
8: Date date=new Date();
9: %>
10: <BR>
11: <%=date%>
12: </BODY>
Stacktrace:
org.apache.(DefaultErrorHandler.java:92)
org.apache.(ErrorDispatcher.java:330)
org.apache.(JDTCompiler.java:443)
org.apache.(Compiler.java:362)
org.apache.(Compiler.java:340)
org.apache.(Compiler.java:327)
org.apache.jasper.(JspCompilationContext.java:594)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.2 logs.