81,094
社区成员
发帖
与我相关
我的任务
分享
function showdelete(e){
var ids = e.parentNode.parentNode.getElementsByTagName('td')[1].innerHTML;
window.location.href="clients!delete.action?ids="+ids;
}
public String delete(){
System.out.println("delete++");
int flag = clientdao.delete(ids);
if(flag==1)
msg = "删除成功 !";
else
msg = "删除失败!";
ActionContext.getContext().put("msg", msg);
return "deletes";
}
<action name="clients" class="ClientAction" >
<result name="success">/MyJsp.jsp</result>
<result name="input">/MyJsp.jsp</result>
<result name="showupdates">/updateClient.jsp</result>
<result name="update">/MyJsp.jsp</result>
<result name="deletes">/its.jsp</result>
</action>
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'its.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%System.out.println("its.jsp"); %>
This is my JSP page. <br>
</body>
</html>
[/quote]这个会瞬间关闭?[/quote]
嗯 是的 会有 非常短暂的显示 几乎肉眼看不见 但是js中的 <%System.out.println("its.jsp"); %>执行了
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'its.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%System.out.println("its.jsp"); %>
This is my JSP page. <br>
</body>
</html>
[/quote]这个会瞬间关闭?
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'its.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%System.out.println("its.jsp"); %>
This is my JSP page. <br>
</body>
</html>