怎样实现在servlet中重定向一个jsp页面到一个指定的frame框架
使用 response.sendRedirect("jspName.jsp")
像用<a href="jspName.jsp" target="mainframe" ></a>超链接一样,
能实现吗?或者还有其他方法来实现(至谢!!!!!)
使用 response.sendRedirect("jspName.jsp")
像用<a href="jspName.jsp" target="mainframe" ></a>超链接一样,
能实现吗?或者还有其他方法来实现(至谢!!!!!)
解决方案 »
- 感觉有难度,不信来瞧瞧--图片如何实现任转任意角度显示?
- Tomcat编译JSP后得到的servlet类依赖Tomacat本身的实现,不能在其它容器中运行,对吗?
- 如何编程实现自动备份数据库?急!
- 谁能给我发一份mod_jk.dll,用以apache2和tomcat4整合
- 如何屏蔽调<font color=red>网友的发言</font>
- 很简单的问题,很好得的分数,只是我太菜了……
- 急救!!!!HELP!!!!
- 高手指点(在线等待):用jboss-tomcat+struts构造J2EE应用程序时出问题
- (技巧提示)如何用JSP从数据库里提出图片数据显示到页面上[image,picture]
- hibernate list many-tomay
- HTTP Status 404
- 毕业设计
在web.xml中配置映射。
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
新闻发布系统
</title>
</head>
<frameset rows="100,*">
<frame scrolling="no" src="top.jsp" name="topFrame" />
<frameset cols="200,*">
<frame scrolling="no" name="leftFrame" src="left.jsp"/>
<frame scrolling="no" name="rightFrame" src="right.jsp"/>
</frameset>
</frameset>
</html>top中
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>top</title>
</head>
<body bgcolor="#ffffff">
<img src="img/banner.jpg" height="80" width="100%" alt=""/>
</body>
</html>left中
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>left</title>
</head>
<body bgcolor="#33CC66">
<br>
<font size="4">
<b>新闻发布后台管理</b>
</font>
<br>
<br>
<a href="firsttitlesubmit.jsp" target="rightFrame">一级标题发布</a>
<br>
<a href="secondtitlesubmit.jsp" target="rightFrame">二级标题及文件位置发布</a>
</body>
</html>right中
<%@page contentType="text/html; charset=GBK"%>
<html>
<head>
<title>right</title>
</head>
<body bgcolor="#ffffff">
<img src="img/main-1.gif" alt=""/>
</body>
</html>一些图片的链接可以替换的,你要的也许是这些,不是的话 请留言说得清楚些