请高手来帮忙处理jsp错误。

来源:百度知道 编辑:UC知道 时间:2024/05/10 20:32:21
我编好的jsp程序老是出现以下错误提示
HTTP Status 404 - Servlet debugjsp is not available
type Status report
message Servlet debugjsp is not available
description The requested resource (Servlet debugjsp is not available) is not available.
源程序如下:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.util.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<jsp:include flush="true" page="head.jsp"></jsp:include>
<table width="80%" align=&qu

404错误一般是因为找不到路径,看你的代码好像是把jsp放到web.xml里配置路径了的,试着不要配置jsp路径,直接访问这个jsp看看。
http://servername:port/contexpath/.../*.jsp