Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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>


Ïà¹ØÎĵµ£º

jspÖÐͨ¹ýURLµØÖ·»ñÈ¡¸ÃµØÖ·Ò³ÃæÖеľ²Ì¬Ò³Ãæ


try {
            URL url = new URL("http://www.163.com");
            InputStream is = url.openStream();
            byte[] buffer = new byte[1024];
           ......

СJSP³ÌÐò

<%@ 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ʵÏÖÎļþÉÏ´«

ʹÓÃRandomAccessFileÀàÌṩµÄ¹¦ÄÜÀ´ÊµÏÖÎļþÉÏ´«¡£µ±ÎÒÃÇÏë¶ÔÒ»¸öÎļþ½øÐжÁд²Ù×÷ʱ£¬¿ÉÒÔ´´½¨Ò»¸öÖ¸Ïò¸ÃÎļþµÄRandomAccessFileÁ÷¼´¿É£¬ÕâÑù¼È¿ÉÒÔ´ÓÕâ¸öÁ÷ÖжÁÈ¡Õâ¸öÎļþµÄÊý¾Ý£¬Ò²Í¨¹ýÕâ¸öÁ÷дÈëÊý¾Ý¸øÕâ¸öÎļþ¡£
ÀûÓÃJavaBean¸ºÔð½«Óû§Ñ¡ÔñµÄÎļþÉÏ´«µ½·þÎñÆ÷¡£bean¿ÉÒÔÈÃÄÚÖöÔÏórequestµ÷Ó÷½·¨getInputStream£ ......

javabeanÏò´«jsp´«Öµ

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ