日期:2014-05-17  浏览次数:20833 次

HTTP Status 404 - /blog/admin/articleservlet
The requested resource (/blog/admin/articleservlet) is not available.总是报这个错,有谁能帮忙解决下么??



jsp代码如下:
<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
  <table width="778" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" style="word-break:break-all">
  <tr><td colspan="2"><%@ include file="AdminTop.jsp" %></td></tr>
  <tr>
  <td><jsp:include page="AdminLeft.jsp"/></td>
  <td align="center" valign="top">
  <form action="articleservlet" method="post">
  <input type="hidden" name="action" value="typeAdd">
  <table border="0" width="80%" cellspacing="0" cellpadding="8">
  <tr height="60"><td colspan="2">【添加文章类别】</td></tr>
  <tr>
  <td align="center">类别名称:</td>
  <td><input type="text" name="typeName" size="50"></td>
  </tr>
<tr>
  <td align="center">类别描述:</td>
  <td><input type="text" name="typeInfo" size="50"></td>
  </tr>
  <tr height="50">
  <td colspan="2" align="center">
  <input type="submit" class="btn_bg" value="保存">
  <input type="reset" class="btn_bg" value="重置">
  </td>
  </tr>
  </table>
  </form>
  </td>
  </tr>
  <tr><td colspan="2"><%@ include file="AdminEnd.jsp" %></td></tr>
  </table>
  </center>
</body>
</html>


servlet代码:
package servlet;

import java.io.IOException;
import java.util.Date;
import java.util.List;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import toolbean.MyTools;
import valuebean.Article;
import valuebean.ArticleType;
import valuebean.Review;
import dao.ArticleDao;
import dao.ArticleTypeDao;
import dao.Review