ssm框架项目一配置web.xml中的listener就报404,注释掉监听器就可以出来初始页面,错误信息如下:
[。img=https://img-bbs.csdn.net/upload/201904/15/1555313650_399709.jpg][/img]
求助。
[。img=https://img-bbs.csdn.net/upload/201904/15/1555313650_399709.jpg][/img]
求助。
解决方案 »
- onclick='doInfo(${a})'; javascript能传对象 该怎么使用?
- Struts应用问题
- JSP中out.write()和out.print()的区别
- 怎么使用POI直接在客户端打印报表(不要下载 直接 打印)
- 请大家帮我看看这个问题。
- 生成itext的速度问题
- eclipse中如何用JSP来调用JavaBean.
- 关于数据回填功能在JSP中如何实现
- javascript中调用引入jsp文件的java函数
- 急急急!!!webservice new RPCServiceClient()初始化时报错
- 江湖救急...萌新..java相关
- ssm框架项目一配置web.xml中的listener就报404,注释掉监听器就可以出来初始页面
//访问login.jsp时,才放过,并且login.jsp的后续操作,继续执行,不拦截
if (servletPath.equals("你的初始页")) {
chain.doFilter(req, res);
return;
}else {
Object s=request.getSession().getAttribute("name");
if(s!=null){
chain.doFilter(req, res);
return;
}else{
String contextPath=request.getContextPath();
response.setCharacterEncoding("utf-8");
request.setCharacterEncoding("utf-8");
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
//否则拦截,跳转指定的页面
pw.print("<script>window.top.location.href='"+contextPath + "指定的页面链接"+";</script>");