我是新手 不知错在哪里
HTTP Status 404 - /millet/page/admin/page/main/adminLogoutAction.actiontype Status report
message /millet/page/admin/page/main/adminLogoutAction.action
description The requested resource (/millet/page/admin/page/main/adminLogoutAction.action) is not available.
Apache Tomcat/7.0.26
package com.zrcx.millet.admin.view;
import
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/page/admin/page/main/adminLogoutAction.action")
public class AdminLogoutAction extends HttpServlet{
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
//session 失效
req.getSession().invalidate();
resp.sendRedirect(req.getContextPath()+"/page/admin/login/login.jsp");
}
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
doGet(req, resp);
}
}
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="right_top">
<div id="img" onclick="openc()">
<img src="images/close.gif" />
</div>
<span id="spanco" class="imgtext" onclick="openc()">关闭左栏</span>
<span class="imgtext2"></span>
<div class="weather">
<marquee id="weather_marquee" direction="left" scrollamount="3" onmouseover="this.stop()" onmouseout="this.start()">
欢迎${adminBean.email }登录....
</marquee>
</div>
<div id="loginout">
<div id="loginoutimg">
<img src="images/loginout.gif" />
</div>
<span class="logintext" onclick="parent.window.location.href='adminLogoutAction.action'">退出系统</span>
</div>
</div>
</body>
</html>
<script type="text/javascript">
var menu=window.parent.parent.document.getElementsByTagName("frameset")[1];
var spanco = document.getElementById("spanco");
var img = document.getElementById("img");
function openc(){
if (spanco.innerHTML =="关闭左栏"){
menu.cols="0,*";
spanco.innerHTML = "打开左栏";
img.innerHTML = "<img src=\"images/open.gif\" />";
}else{
menu.cols="188,*";
spanco.innerHTML = "关闭左栏";
img.innerHTML = "<img src=\"images/close.gif\" />";
}
}
</script>