当前位置:编程学习 > JSP >>

怎么在加载多个jsp组成的页面A时,调用其中一个jsp(B)的用于查询记录的action,并显示在A上。

现在的问题是,单独加载B时,action可以成功调用,且页面结果显示正确。可是,加载A时就不能成功显示action的查询结果。以下是A的代码: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> <HTML> <HEAD> <TITLE>Service Manage Page</TITLE> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META content="MSHTML 6.00.2900.5848" name=GENERATOR> </HEAD> <FRAMESET id=index border=0 frameSpacing=0 rows=120,* frameBorder=no> <FRAME id=topFrame name=topFrame src="template/top.jsp" noResize scrolling=no> <FRAMESET border=0 frameSpacing=0 frameBorder=no cols=20%,*> <FRAME id=leftFrame name=leftFrame src="template/Left.jsp" noResize scrolling=no> <FRAME id=mainFrame name=mainFrame src="webpage/serviceManage.jsp" noResize scrolling=no> </FRAMESET> </FRAMESET> <noframes></noframes> </HTML> 而B就是其中的"webpage/serviceManage.jsp".万分感谢!
追问:能说具体一点吗?我是初学,没有用过路径配置确定没有问题
答案:我感觉是tomcat进行解析后,不能很好支持一些特效代码。在或者360内核和IE内核是分开的。两个方法。换个webxlogic试试把代码发布运行,或者tomcat在IE上跑跑》。。。。
我之前有代码也是在360显示不出来。
其他:<include>标签适用于在jsp页面导入jsp页面的! 检查下路径配置对不对。 把您的action中的代码贴出来看看 <HTML>
	<HEAD>
		<TITLE>Service Manage Page</TITLE>
	<META http-equiv=Content-Type content="text/html; charset=utf-8">
	<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
	</HEAD>
	<FRAMESET id=index border=0 frameSpacing=0 rows=120,* frameBorder=no>
	<FRAME id=topFrame name=topFrame src="template/top.jsp" noResize scrolling=no>
               <FRAME id=leftFrame name=leftFrame src="template/Left.jsp" noResize scrolling=no>
	<FRAME id=mainFrame name=mainFrame src="webpage/serviceManage.jsp" noResize scrolling=no>
	</FRAMESET>
	<noframes>
<body>
</body>
</noframes>
</HTML>
就一个<FRAMESET >不行吗? 

上一个:下面两个jsp语句什么意思?
下一个:jsp javascript 判断两个文本框的值以否一样

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,