jspÖж¯Ì¬Ìá½»actionÓ뵯³öÈ·È϶Ի°¿ò
jspÒ³ÃæÖиù¾ÝÒ»¸öcheckedÊÇ·ñ±»Ñ¡ÖÐÀ´µ¯³ö²»Í¬µÄÈ·È϶Ի°¿ò¡£
<script type="text/javascript">
function modifyDetail() {
var v = document.getElementById("isDelete");
if(v.checked) {
return confirm("Are you sure delete?");
}else {
return confirm("Are you sure update?");
}
}
</script>
jspÒ³ÃæÖиù¾ÝÒ»¸öcheckedÊÇ·ñ±»Ñ¡ÖÐÀ´µ¯³ö²»Í¬µÄÈ·È϶Ի°¿ò£¬²¢Ìá½»²»Í¬µÄaction¡£
<script type="text/javascript">
function modifyDetail() {
var v = document.getElementById("isDelete");
if(v.checked) {
var action = document.getElementById("f1");
f1.action = "delectBlacklist";
f1.submit;
return confirm("Are you sure delete?");
}else {
return confirm("Are you sure update?");
}
}
</script>
Ïà¹ØÎĵµ£º
ÕâÊÇÒ»¸öÓû§×¢²áµÄÒ³Ãæ£¬²¿·Ö´úÂ루ûÓдíÎó£©ÒÑÂÔ£¬¿ÉÊDz»ÄÜʵÏÖformµÄactionÌø×ª
checkform()ÀïÃ÷Ã÷ÓÐdocument.form.submit()£¬¾ÍÊDz»ÄÜÌø×ª£¬
ÄܰïÎÒ¿´ÏÂÎÊÌâ³öÔÚÄÄÂð£¿
ÕâÊÇÕÕ×ÅÊéÉϵÄÀý×ÓдµÄ£¬×¢²áºÍÖØÖö¯¶¼×÷ÊÇͨ¹ýͼƬÀ´´¦ÀíµÄ¡£
Çë²»Áߴͽ̣¬ÔÚϲ»Ê¤¸Ð¼¤¡£¡£¡£
<%@ page contentType="te ......
<%@ page language="java" import="kg.TestBean2;" %>
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>HelloBean</title>
</head>
<body>
<%--
<%
kg.TestBean2 testbean=(kg.TestBean2)session.setAttribute("testbean");
if ......
Ëæ×ż¼ÊõµÄÈÕÐÂÔÂÒì £¬JSPµÄм¼ÊõÒ²²ã³ö²»ÇΪÁË·½Ãæ´ó¼ÒµÄѧϰÓ빤×÷£¬ÏÂÃæ½«¼òµ¥µÄ½éÉÜÒ»ÏÂJSP¼Ü¹¹¡¢JSP¿ª·¢¹¤¾ß¡¢Web·þÎñÆ÷¼°Æäîñȱµã¡£
JSP¼Ü¹¹£º
struts£º Struts¸úTomcat¡¢TurbineµÈÖî¶àApacheÏîĿһÑù£¬ÊÇ¿ªÔ´Èí¼þ£¬ÕâÊÇËüµÄÒ»´óÓŵ㣬ʹ¿ª·¢ÕßÄܸüÉ ......
JSPÖÐÓÐÁ½ÖÖ°üº¬Óï¾ä£º
1. <%@include file="head.jsp" %>
2. <jsp:include page="head.jsp" />
»òÕߣº
<jsp:include page="jieshou.jsp">
<jsp:param name="canshu" value="magci" />
&nbs ......