| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1308 人关注过本帖
标题:我是新手 不知错在哪里
只看楼主 加入收藏
q185115
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2016-12-27
收藏
 问题点数:0 回复次数:0 
我是新手 不知错在哪里
HTTP Status 404 - /millet/page/admin/page/main/adminLogoutAction.action

type 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>

搜索更多相关主题的帖子: requested import admin 
2016-12-27 12:04
快速回复:我是新手 不知错在哪里
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025793 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved