struts2 为什么跳到了框架中?我用struts2做登录是 失败跳的是对的 成功就会跳到首页面的框架中去 10
<packagename="f_loginPkg"namespace="/Login"extends="struts-default"><actionname="logi...
<package name="f_loginPkg" namespace="/Login" extends="struts-default">
<action name="login" class="com.ms.action.LoginAction">
<result type="dispatcher" name="input">/html/login.jsp</result>
<result type="dispatcher" name="ok">/html/index.jsp</result>
<result type="dispatcher" name="failure">/html/login.jsp</result>
</action>
</package>
错误提示
HTTP Status 404 - /MoniterSystem0_01/Login/home.jsp
其中home.jsp 是index的子框架中的页面
index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网络舆情监测与分析系统陆</title>
</head>
<frameset rows="177,*" frameborder="no" framespacing="0">
<frame src="top.jsp" name="topFrame" frameborder="no" scrolling="no" noresize="noresize" marginheight="180" id="topFrame" title="topFrame" />
<frame src="home.jsp" name="mainFrame" frameborder="no" scrolling="auto" marginwidth="0" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body></noframes>
</html>
谢谢各位大神!! 展开
<action name="login" class="com.ms.action.LoginAction">
<result type="dispatcher" name="input">/html/login.jsp</result>
<result type="dispatcher" name="ok">/html/index.jsp</result>
<result type="dispatcher" name="failure">/html/login.jsp</result>
</action>
</package>
错误提示
HTTP Status 404 - /MoniterSystem0_01/Login/home.jsp
其中home.jsp 是index的子框架中的页面
index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网络舆情监测与分析系统陆</title>
</head>
<frameset rows="177,*" frameborder="no" framespacing="0">
<frame src="top.jsp" name="topFrame" frameborder="no" scrolling="no" noresize="noresize" marginheight="180" id="topFrame" title="topFrame" />
<frame src="home.jsp" name="mainFrame" frameborder="no" scrolling="auto" marginwidth="0" id="mainFrame" title="mainFrame" />
</frameset>
<noframes><body>
</body></noframes>
</html>
谢谢各位大神!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询