struts2中页面显示问题 我想把通过struts.xml文件得到的页面(如a.jsp)显示在一个页面的指定框架中,这该怎么办啊?高手们出来给我指点一下啊,感激不尽啊,急等啊!!!!!!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <action path="/reply" type="com.creawor.meip.send.ReplyAction" scope="request"> <forward name="replylist" path="/WEB-INF/jsp/send/reply.jsp" /> <forward name="modifyreply" path="/WEB-INF/jsp/send/modifyreply.jsp" /> <forward name="replyaction" path="/WEB-INF/jsp/send/reply.jsp" /> <forward name="failure" path="/prompt.do" /></action> 用struts2结合sitemesh,自己定义decorators模板,然后生成~ 配置文件配置不出来.代码参照:<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> </title> </head> <frameset name=topset rows="104,*" cols="*" frameborder="no" border="0" framespacing="0" id="topset"> <frame src="a.jsp" name="topFrameAdmin" scrolling="no" noresize="noresize" id="topFrameAdmin"/> <frame src="" name="mainFrameAdmin" scrolling="yes" noresize="noresize" /> </frameset> <noframes> <body> </body> </noframes> </html> 以上frame框架,分上下两部分。 如果点a.jsp中的链接,内容在frame下部分显示 <a href="请求" target="mainFrameAdmin">test </a> 如果是struts2可以用<s:action />标签达到想要的结果。 <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> </title> </head> <frameset name=topset rows="104,*" cols="*" frameborder="no" border="0" framespacing="0" id="topset"> <frame src="a.jsp" name="topFrameAdmin" scrolling="no" noresize="noresize" id="topFrameAdmin"/> <frame src="" name="mainFrameAdmin" scrolling="yes" noresize="noresize" /> </frameset> <noframes> <body> </body> </noframes> </html>3楼的大大已经给出了很好的答案 各位啊,我要的是从struts.xml文件得到的jsp页面,是未知的,不是定死的,不能用target属性 我的意思是让action里面的<result>标签返回的页面显示到一个页面的指定的<iframe>里面,高手啊,出来啊!!!!!!!!!!! Google map问题 如何在jsp页面中进行button按钮传参 为什么我在jsp中得不到数据库里面的数据 request.getAttribute不能接收结果集 问一个struts标签的问题,急用在线等!!!!!!!!!!!! 初学者的疑惑???? Web Container和Web Server 分别指什么? servlet给jsp传参数,中文乱码 请问怎么样实现在a页面上提交一个表单,随之自动刷新b页面的内容啊? 请教如何加载mysql JDBC驱动到tomcat web工程 关于服务器端的缓存问题 xml生成树结构问题
scope="request">
<forward name="replylist"
path="/WEB-INF/jsp/send/reply.jsp" />
<forward name="modifyreply"
path="/WEB-INF/jsp/send/modifyreply.jsp" />
<forward name="replyaction"
path="/WEB-INF/jsp/send/reply.jsp" />
<forward name="failure" path="/prompt.do" />
</action>
自己定义decorators模板,然后生成~
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> </title>
</head>
<frameset name=topset rows="104,*" cols="*" frameborder="no" border="0"
framespacing="0" id="topset">
<frame src="a.jsp" name="topFrameAdmin" scrolling="no" noresize="noresize"
id="topFrameAdmin"/>
<frame src="" name="mainFrameAdmin" scrolling="yes" noresize="noresize" />
</frameset>
<noframes>
<body>
</body>
</noframes>
</html> 以上frame框架,分上下两部分。
如果点a.jsp中的链接,内容在frame下部分显示 <a href="请求" target="mainFrameAdmin">test </a>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> </title>
</head>
<frameset name=topset rows="104,*" cols="*" frameborder="no" border="0"
framespacing="0" id="topset">
<frame src="a.jsp" name="topFrameAdmin" scrolling="no" noresize="noresize"
id="topFrameAdmin"/>
<frame src="" name="mainFrameAdmin" scrolling="yes" noresize="noresize" />
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>
3楼的大大已经给出了很好的答案