易截截图软件、单文件、免安装、纯绿色、仅160KB

Servlet/Jsp问题

用frameset做了一个简单的导航页面main.jsp。左边的导航页是link.jsp,右边的目标页(显示内容)是content.jsp。
我点击左边导航页的每一个超级链接,都可以在右侧的content.jsp中显示内容。
但是,如果我想有个退出的链接,退出当前frameset并跳转到index.jsp。
应该怎么操作?
应该在servlet操作吧 然后定向到index.jsp

引用
应该在servlet操作吧 然后定向到index.jsp


我是链接到servlet然后重定向的。
但是跳转后的页面还是显示在右边。

<script language="JavaScript">
function quitit()
if (top.location == self.location && opener) {
  opener.location.replace(" <%=path%>/index.jsp");
  self.close();
}
else {
  top.location.replace(" <%=path%>/index.jsp");
}
</script>
<input type ="button" name="qiutit" value="quitit" onclick="quitit()"/>

引用
<script language="JavaScript">
function quitit()
if (top.location == self.location && opener) {
  opener.location.replace(" <%=path%>/index.jsp");
  self.close();
}
else {
  top.location.replace(" <%=path%>/index.jsp");
}
</script>
<input type ="button" na


相关问答:

jsp链接sql2000的疑问?



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

关于jsp 引入后页面跳转的问题 - Java / Java EE

问题是这样的:
   
我有一个文件nagiv.jsp 另一个文件failure.jsp包含他,同时nagiv文件中有一个可以跳转到yy.jsp的commandButton,但是我将failure中点击nagiv中的哪个commandButton,也面不会跳转 ......

jsp页面中字体变色问题 - Java / Web 开发

<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......

Jsp If条件判断问题. - Java / Web 开发

新手:
tomcat+struts 2.0
jsp 页面直接关联model
现在需要根据model(admin)里面的一个item(id),判断jsp页面出现的内容.
大概流程:
...
<table>
<tr>
<td>
<s:if admin.id is null> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号