alert("留言失败"); out.print("<script>alert(\"留言失败!\"); history.go(-1);</script>"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //显示提示信息,并跳转到指定地址 public String GotoURL(String Info,String AddURL) { String TheInfo=""; TheInfo="<script>alert(\""+Info+"\"); location.href=\""+AddURL+"\";</script>"; return TheInfo; } //显示提示信息,并返回前一页 public String GotoBackURL(String Info) { String TheInfo=""; TheInfo="<script>alert(\""+Info+"\"); history.go(-1); </script>"; return TheInfo; } //显示提示信息,并返回前两页 public String GotoBack2URL(String Info) { String TheInfo=""; TheInfo="<script>alert(\""+Info+"\"); history.go(-2); </script>"; return TheInfo; } //显示提示信息,Top返回到指定地址 public String GotoTopURL(String Info,String AddURL) { String TheInfo=""; TheInfo="<script>alert(\""+Info+"\"); top.location.href=\""+AddURL+"\";</script>"; return TheInfo; } //不显示提示信息就转到指定地址 public String GotoURLNoInfo(String AddURL) { String TheInfo=""; TheInfo="<script>location.href=\""+AddURL+"\";</script>"; return TheInfo; } struts.xml问题 如何从一个数组中删除另外一个数组 各位专家好!请问我写了一个上传文件功能;为什么每上传一个文件时,在tomcat目录下就有一个上传的文件?我查过,但我确实没有在哪个地方设置过上传文件后放在tomcat目录下的。 连接池的具体实现中问题? 请教SendRedirect的问题 [求助]Eclipse中log4j问题 插入mysql数据库出现乱码!!!!!急!!!! 在JSP中如何验证输入数据 请问如何使用jar命令,在线 如何实现缩略图展示,考虑性能 怎么样在JSP中调用动态链接库?最好有源码,谢谢! jsp向sqlserver中插入中文记录需要转码吗?应该怎么写?!
public String GotoURL(String Info,String AddURL)
{ String TheInfo="";
TheInfo="<script>alert(\""+Info+"\"); location.href=\""+AddURL+"\";</script>";
return TheInfo;
}
//显示提示信息,并返回前一页
public String GotoBackURL(String Info)
{ String TheInfo="";
TheInfo="<script>alert(\""+Info+"\"); history.go(-1); </script>";
return TheInfo;
}
//显示提示信息,并返回前两页
public String GotoBack2URL(String Info)
{ String TheInfo="";
TheInfo="<script>alert(\""+Info+"\"); history.go(-2); </script>";
return TheInfo;
}
//显示提示信息,Top返回到指定地址
public String GotoTopURL(String Info,String AddURL)
{ String TheInfo="";
TheInfo="<script>alert(\""+Info+"\"); top.location.href=\""+AddURL+"\";</script>";
return TheInfo;
}
//不显示提示信息就转到指定地址
public String GotoURLNoInfo(String AddURL)
{ String TheInfo="";
TheInfo="<script>location.href=\""+AddURL+"\";</script>";
return TheInfo;
}