主页面如下<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><frameset rows="168,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset rows="*" cols="174,*" framespacing="0" frameborder="no" border="0">
<frame src="file/life.jsp" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="file/down.jap" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body>
</body>
</noframes></html>
跳到这个页面时的同时加载 top.jsp,left.jsp,down.jsp页面,这3个子页面都对应一个Action;分别是MS201Action,MS202Action,MS203Action.怎么写才能加在进去,我用的是struts 1.2
·····大哥们帮帮忙!!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><frameset rows="168,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset rows="*" cols="174,*" framespacing="0" frameborder="no" border="0">
<frame src="file/life.jsp" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="file/down.jap" name="mainFrame" id="mainFrame" title="mainFrame" />
</frameset>
</frameset>
<noframes><body>
</body>
</noframes></html>
跳到这个页面时的同时加载 top.jsp,left.jsp,down.jsp页面,这3个子页面都对应一个Action;分别是MS201Action,MS202Action,MS203Action.怎么写才能加在进去,我用的是struts 1.2
·····大哥们帮帮忙!!!
解决方案 »
- jquery 提交form表单不用插件的那种 怎么提交
- servlet传参数
- 给大家推荐一套非常实用的通用查询框架,有完整的Demo、使用说明、示例源码
- 学习标签库有用吗?必须学吗?
- 有关门面模式和ResourceBundle的问题,急。
- Myeclipse10 中tomcat7.0启动异常
- 谁有jsp版的新闻发布网站源代码,高价购买!
- 在ASP里可以用Response.execute("fadg.asp")来执行但并不转向这个页面,但在JSP里怎么实现?
- 万分着急,成功留岗,败则走人!
- 程序升级为spring4+hibernate4+struts2以后,不识别DelegatingRequestProcessor了
- 怎么从后台把消息传过来
- java(JXL) 填充excel模板 问题,谢谢各位了
left.jsp里的action="MS202Action"
down.jsp里的action="MS203Action"
不就行了
<html:form action="/ms/MS2003Action">
<html:hidden property="dispatch" value=""/><logic:present name="ms2000Form" property="searchList">
<logic:iterate id="search" name="ms2000Form" property="searchList">
<tr>
<TD width="49" height="30" bordercolor="#ECE9D8" class=gridViewItem style="WIDTH: 50px">
<div align="center"><input type="checkbox" name="checkbox" id="checkbox1" /></div></TD>
<TD width="100" height="30" bordercolor="#ECE9D8" class=gridViewItem>
<div align="center" class="STYLE22"><bean:write name="search" property="userId"/></div></TD>
<TD width="102" height="30" bordercolor="#ECE9D8" class=gridViewItem>
<div align="center" class="STYLE22"><bean:write name="search" property="userName"/></div></TD>
<TD width="105" height="30" bordercolor="#ECE9D8" class=gridViewItem>
<div align="center" class="STYLE22"><bean:write name="search" property="comPany"/></div></TD>
<TD height="30" bordercolor="#ECE9D8" class=gridViewItem>
<div align="center" class="STYLE22"><bean:write name="search" property="confStat"/></div></TD>
<TD height="30" bordercolor="#ECE9D8" class=gridViewItem>
<div align="center" class="STYLE22"><bean:write name="search" property="powerState"/></div></TD>
<TD height="30" bordercolor="#ECE9D8" class=STYLE23>
<div align="center"><span class="STYLE24">
<input type="button" name="detail" value="删除" onclick="checkConsult()">
<input type="button" name="update" value="查看" onclick="checkUpdate()">
<input type="button" name="delete7" value="管理" onclick="checkDelete ()">
</span></div></TD>
</tr></logic:iterate></logic:present>
</html:form>
是不是要这样写:<html:form action="/ms/MS2003Action.do">
另外确认下 struts—config.xml里action的path是不是/MS2003Action??
<action path="/ms/MS2003Action"
type="bei.ms.action.MS2003Action"
name="MS2000Form"
scope="request"
validate="false"
parameter="dispatch">
<forward name="Display3" path="/pages/MS2003D.jsp" />
路径是正确的 我WEB.XML是 /do/* 不加.do