[求助]HTTP Status 500
用Tomcat部署JSP文件,出现HTTP Status 500,大家帮忙解决一下,谢谢!其中,JSP文件为:page.jsp放在Tomcat文件下的webapps\fir目录下,代码为:
<%@ page language="java" contentType="text/html";charset="GBK"%>
<%@ page import="java.util.*"%>
<%
Date dnow=new Date();
int dhours=dnow.getHours();
int dmin=dnow.getMinutes();
int dsec=dnow.getSeconds();
out.print("服务器时间:"+ dhours + ":" + dmin + ":" + dsec);
%>
<script language="JavaScript">
var dnow = new Date();
dhours = dnow.getHours();
dmin = dnow.getMinutes();
dsec = dnow.getSeconds();
document.write("<br>浏览器时间:" + dhours + ":" + dmin + ":" + dsec);
</script>
配置文件web.xml放在Tomcat文件的webapps\fir\web-inf目录下,代码为:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>Tomcat Documentation</display-name>
<description>
Tomcat Documentation
</description>
</web-app>