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>
Ïà¹ØÎĵµ£º
try {
URL url = new URL("http://www.163.com");
InputStream is = url.openStream();
byte[] buffer = new byte[1024];
  ......
<%@ 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 ......
ʹÓÃRandomAccessFileÀàÌṩµÄ¹¦ÄÜÀ´ÊµÏÖÎļþÉÏ´«¡£µ±ÎÒÃÇÏë¶ÔÒ»¸öÎļþ½øÐжÁд²Ù×÷ʱ£¬¿ÉÒÔ´´½¨Ò»¸öÖ¸Ïò¸ÃÎļþµÄRandomAccessFileÁ÷¼´¿É£¬ÕâÑù¼È¿ÉÒÔ´ÓÕâ¸öÁ÷ÖжÁÈ¡Õâ¸öÎļþµÄÊý¾Ý£¬Ò²Í¨¹ýÕâ¸öÁ÷дÈëÊý¾Ý¸øÕâ¸öÎļþ¡£
ÀûÓÃJavaBean¸ºÔð½«Óû§Ñ¡ÔñµÄÎļþÉÏ´«µ½·þÎñÆ÷¡£bean¿ÉÒÔÈÃÄÚÖöÔÏórequestµ÷Ó÷½·¨getInputStream£ ......
struts-config:
<action path="/articleManage" name="articleManageForm" scope="request" type="auction.action.ArticleManageAction" validate="false">
<forward name="atriclesList" path="/WEB-INF/publish/articleManage/atriclesList.jsp"/>
<forward ......