??xml version="1.0" encoding="utf-8" standalone="yes"?>国产一区二区三区观看,国产综合香蕉五月婷在线 ,国产精品1区在线http://www.aygfsteel.com/youngturk/category/18759.htmlThe world is a fine place , and worth fighting for it.zh-cnTue, 16 Jul 2013 07:44:52 GMTTue, 16 Jul 2013 07:44:52 GMT60js postҎhttp://www.aygfsteel.com/youngturk/archive/2013/07/16/401620.htmlyoungturkyoungturkTue, 16 Jul 2013 03:11:00 GMThttp://www.aygfsteel.com/youngturk/archive/2013/07/16/401620.htmlhttp://www.aygfsteel.com/youngturk/comments/401620.htmlhttp://www.aygfsteel.com/youngturk/archive/2013/07/16/401620.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/401620.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/401620.htmlfunction postToNethall(PARAMS) {
var pay_no;
var money;
var checkcode;
var feeetype;
var old_pay_no;
var old_money;

var splitAll = new Array();
//试 PARAMS = "pay_no=jmW9n%2fJCCDo%3d&money=wB1k5PqI0oU%3d&checkcode=nhIAV2UrfsUreUdGf0wS3kcPYe5P6iTZ%2boRAgdGvPLN33eTEKYp75j%2f%2bhT7xSYg%2be%2bHGf2MZyyAcYpRMl6ng3ireWvV%2bj5kRZkldFCGF8nhE1ANvxGBMBQ%3d%3d&feeetype=Q1dQXRPDVOc%3d&old_pay_no=0GUN11ebpe4%3d&old_money=0GUN11ebpe4%3d";
       splitAll =  PARAMS.split("&");
       var arrayvar;
        for( var isplit = 0 ; isplit < splitAll.length ; isplit++){
            arrayvar = new Array();
            arrayvar = splitAll[isplit].split("=");
            for(var i = 0; i < arrayvar.length;i++){
                if(arrayvar[i] = "pay_no"){
                    pay_no = arrayvar[i+1];
                    //alert(pay_no);
                    break;
                }
                if(arrayvar[i] = "money"){
                    money = arrayvar[i+1];
                    // alert(money);
                    break;
                }
                if(arrayvar[i] = "checkcode"){
                    checkcode = arrayvar[i+1];
                    // alert(checkcode);
                    break;
                }
                if(arrayvar[i] = "feeetype"){
                    feeetype = arrayvar[i+1];
                    // alert(feeetype);
                    break;
                }
                if(arrayvar[i] = "old_pay_no"){
                    old_pay_no = arrayvar[i+1];
                    // alert(old_pay_no);
                    break;
                }
                if(arrayvar[i] = "old_money"){
                    old_money = arrayvar[i+1];
                    // alert(old_money);
                    break;
                }
            }
        }
         var name = "test"
         var tempForm = document.createElement("form"); 
         tempForm.id="tempForm1"; 
         tempForm.method="post"; 
         //tempForm.action="         tempForm.action="         tempForm.target=name; 
         
          var hideInput1 = document.createElement("input"); 
          hideInput1.type="hidden"; 
         hideInput1.name= "pay_no"
         hideInput1.value= "EeM1whUd4q4%3d";
          tempForm.appendChild(hideInput1); 
         
          var hideInput2 = document.createElement("input"); 
          hideInput2.type="hidden"; 
         hideInput2.name= "money"
         hideInput2.value= "i6hN5C6DIN4%3d";
          tempForm.appendChild(hideInput2); 
         
          var hideInput3 = document.createElement("input"); 
          hideInput3.type="hidden"; 
         hideInput3.name= "checkcode"
         hideInput3.value= "nhIAV2UrfsWnq1I38RKp5%2b46w4bxah62p6tSN%2fESqefuOsOG8WoetiUOtz2bp40id93kxCmKe%2bY%2f%2foU%2b8UmIPnvhxn9jGcsgHGKUTJep4N4q3lr1fo%2bZEWZJXRQhhfJ4RNQDb8RgTAU%3d";
          tempForm.appendChild(hideInput3); 
         
          var hideInput4 = document.createElement("input"); 
          hideInput4.type="hidden"; 
         hideInput4.name= "feeetype"
         hideInput4.value= "Q1dQXRPDVOc%3d";
          tempForm.appendChild(hideInput4); 
         
          var hideInput5 = document.createElement("input"); 
          hideInput5.type="hidden"; 
         hideInput5.name= "old_pay_no"
         hideInput5.value= "0GUN11ebpe4%3d";
          tempForm.appendChild(hideInput5); 
         
          var hideInput6 = document.createElement("input"); 
          hideInput6.type="hidden"; 
         hideInput6.name= "old_money"
         hideInput6.value= "0GUN11ebpe4%3d";
          tempForm.appendChild(hideInput6); 
          
          tempForm.attachEvent("onsubmit",function(){ openWindow(name); });
         document.body.appendChild(tempForm); 
         tempForm.fireEvent("onsubmit");
         alert("tempForm");
         tempForm.submit();
        document.body.removeChild(tempForm);
   }
    



youngturk 2013-07-16 11:11 发表评论
]]>
获得父窗口字D值window.dialogArguments.document.getElementById("hwlxcn").value;http://www.aygfsteel.com/youngturk/archive/2013/06/28/401043.htmlyoungturkyoungturkFri, 28 Jun 2013 06:35:00 GMThttp://www.aygfsteel.com/youngturk/archive/2013/06/28/401043.htmlhttp://www.aygfsteel.com/youngturk/comments/401043.htmlhttp://www.aygfsteel.com/youngturk/archive/2013/06/28/401043.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/401043.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/401043.html        parent = window.dialogArguments.document.getElementById("hwlxcn").value;
   <#else>
        parent = window.opener.document.getElementById("hwlxcn").value;
   </#if>

youngturk 2013-06-28 14:35 发表评论
]]>
http post Ҏhttp://www.aygfsteel.com/youngturk/archive/2013/04/09/397578.htmlyoungturkyoungturkTue, 09 Apr 2013 05:13:00 GMThttp://www.aygfsteel.com/youngturk/archive/2013/04/09/397578.htmlhttp://www.aygfsteel.com/youngturk/comments/397578.htmlhttp://www.aygfsteel.com/youngturk/archive/2013/04/09/397578.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/397578.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/397578.html         var name = "test"
         var PARAMS2 = 'EeM1whUd4q4%3d&money=i6hN5C6DIN4%3d&checkcode=nhIAV2UrfsWnq1I38RKp5%2b46w4bxah62p6tSN%2fESqefuOsOG8WoetiUOtz2bp40id93kxCmKe%2bY%2f%2foU%2b8UmIPnvhxn9jGcsgHGKUTJep4N4q3lr1fo%2bZEWZJXRQhhfJ4RNQDb8RgTAU%3d&feeetype=Q1dQXRPDVOc%3d&old_pay_no=String+%e5%bc%95%e7%94%a8%e6%b2%a1%e6%9c%89%e8%ae%be%e7%bd%ae%e4%b8%ba+String+%e7%9a%84%e5%ae%9e%e4%be%8b%e3%80%82%0d%0a%e5%8f%82%e6%95%b0%e5%90%8d%3a+s&old_money=String+%e5%bc%95%e7%94%a8%e6%b2%a1%e6%9c%89%e8%ae%be%e7%bd%ae%e4%b8%ba+String+%e7%9a%84%e5%ae%9e%e4%be%8b%e3%80%82%0d%0a%e5%8f%82%e6%95%b0%e5%90%8d%3a+s';
        
         var tempForm = document.createElement("form"); 
         tempForm.id="tempForm1"; 
         tempForm.method="post"; 
         tempForm.action="         tempForm.target=name; 
         
          var hideInput = document.createElement("input"); 
          hideInput.type="hidden"; 
         hideInput.name= "pay_no"
         hideInput.value= PARAMS2;
          tempForm.appendChild(hideInput);  
          tempForm.attachEvent("onsubmit",function(){ openWindow(name); });
         document.body.appendChild(tempForm); 
        
         tempForm.fireEvent("onsubmit");
         tempForm.submit();
        document.body.removeChild(tempForm);
   }
    
      function openWindow(name) 
    { 
         window.open('about:blank',name,'height=400, width=400, top=0, left=0, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes');  
      }

youngturk 2013-04-09 13:13 发表评论
]]>
js数据l构(?http://www.aygfsteel.com/youngturk/archive/2013/02/28/395829.htmlyoungturkyoungturkThu, 28 Feb 2013 02:44:00 GMThttp://www.aygfsteel.com/youngturk/archive/2013/02/28/395829.htmlhttp://www.aygfsteel.com/youngturk/comments/395829.htmlhttp://www.aygfsteel.com/youngturk/archive/2013/02/28/395829.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/395829.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/395829.html从结构上看,所有的数据QdataQ最l都可以分解成三U类?/strong>Q?

W一U类型是标量QscalarQ,也就是一个单独的字符ԌstringQ或数字QnumbersQ,比如"北京"q个单独的词?/p>

W二U类型是序列QsequenceQ,也就是若q个相关的数据按照一定顺序ƈ列在一P又叫做数l(arrayQ或列表QListQ,比如"北京Q上??/p>

W三U类型是映射QmappingQ,也就是一个名/值对QName/valueQ,x据有一个名Uͼq有一个与之相对应的|q又UC散列QhashQ或字典QdictionaryQ,比如"首都Q北??/p>

我恍然大悟,数据构成的最单位原来如此简单!难怪在~程语言中,只要有了数组QarrayQ和对象QobjectQ就能够储存一切数据了?/p>

 

关于json?/strong>

21世纪初,Douglas CrockfordL一U简便的数据交换格式Q能够在服务器之间交换数据。当旉用的数据交换语a是XMLQ但是Douglas Crockford觉得XML的生成和解析都太ȝQ所以他提出了一U简化格式,也就是Json?/p>

Json的规格非常简单,只用一个页面几百个字就能说清楚Q而且Douglas Crockford声称q个规格永远不必升Q因规定的都规定了?/p>

1Q?q列的数据之间用逗号Q?Q?Q分隔?/p>

2Q?映射用冒P"Q?Q表C?/p>

3Q?q列数据的集合(数组Q用Ҏ?"[]")表示?/p>

4Q?映射的集合(对象Q用大括P"{}"Q表C?/p>

上面四条规则Q就是Json格式的所有内宏V?/p>

比如Q下面这句话Q?/p>

"北京市的面积?6800qx公里Q常住h?600万h。上市的面Uؓ6400qx公里Q常住h?800万?

写成json格式是q样Q?/p>

[
  {"城市":"北京","面积":16800,"人口":1600},
  {"城市":"上v","面积":6400,"人口":1800}
]

如果事先知道数据的结构,上面的写法还可以q一步简化:

[
  ["北京",16800,1600],
  ["上v",6400,1800]
]

由此可以看到Qjson非常易学易用。所以,在短短几q中Q它取代xmlQ成Z互联|上最受欢q的数据交换格式?/p>

我猜惻IDouglas Crockford一定事先就知道Q数据结构可以简化成三种形式Q否则怎么可能json定义得如此精炼呢Q?/p>

 

学习javascript的时候,我曾l一度搞不清?数组"(array)?对象"(object)的根本区别在哪里Q两者都可以用来表示数据的集合?/p>

比如有一个数la=[1,2,3,4]Q还有一个对象a={0:1,1:2,2:3,3:4}Q然后你q行alert(a[1])Q两U情况下的运行结果是相同的!q就是说Q数据集合既可以用数l表C,也可以用对象表示Q那么我到底该用哪一U呢Q?/p>

我后来才知道Q数l表C有序数据的集合Q而对象表C无序数据的集合。如果数据的序很重要,q数组Q否则就用对象?/p>

 

当然Q数l和对象的另一个区别是Q数l的数据没有"名称"QnameQ,对象的数据有"名称"QnameQ?/p>

但是问题是,很多~程语言中,都有一U叫?兌数组"Qassociative arrayQ的东西。这U数l中的数据是有名U的?/p>

比如在javascript中,可以q样定义一个对象:

var a={"城市":"北京","面积":16800,"人口":1600};

但是Q也可以定义成一个关联数l:

a["城市"]="北京";
a["面积"]=16800;
a["人口"]=1600;

qv初也加剧了我Ҏl和对象的؜淆,后来才明白,在Javascript语言中,兌数组是对象Q对象就是关联数l?/p>

youngturk 2013-02-28 10:44 发表评论
]]>
javascrip与页面执行顺?/title><link>http://www.aygfsteel.com/youngturk/archive/2013/02/06/395181.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Wed, 06 Feb 2013 07:57:00 GMT</pubDate><guid>http://www.aygfsteel.com/youngturk/archive/2013/02/06/395181.html</guid><wfw:comment>http://www.aygfsteel.com/youngturk/comments/395181.html</wfw:comment><comments>http://www.aygfsteel.com/youngturk/archive/2013/02/06/395181.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/youngturk/comments/commentRss/395181.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/youngturk/services/trackbacks/395181.html</trackback:ping><description><![CDATA[2、gq脚?<br />HTML4.0?lt;script>标签定义了defer的属性。这个属性的用途是表明脚本在执行时不会影响面的构造。也是_脚本会gq到整个面都解析完毕后在执行。因此,?lt;script>元素中设|defer属性(如下面的例子Q,实际上与上面介绍的把<script>元素攑֜面底部的效果是一L?<br /><html> <br /><head> <br />  <title> New Document </title> <br />  <script type="text/javascript" defer="defer" src="example1.js"></script> <br />  <script type="text/javascript" defer="defer" src="example2.js"></script> <br /></head> <br /><body> <br />  <!--q里攑ֆ?-> <br /></body> <br /></html> <br />q个例子中,虽然我们?lt;script>元素攑֜了文档的<head>元素中,但其中包含的脚本gq到览器遇?lt;/html>标签后在执行?<br />不过Q问题是q所有浏览器都支持defer属性,IE和firefox3.0是目前唯一支持defer属性的L览器。其他浏览器则会忽略q个属性,不gq脚本的执行 <img src ="http://www.aygfsteel.com/youngturk/aggbug/395181.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/youngturk/" target="_blank">youngturk</a> 2013-02-06 15:57 <a href="http://www.aygfsteel.com/youngturk/archive/2013/02/06/395181.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>FCKEditor2.6.3配合Java的用步?(后台文本~辑?http://www.aygfsteel.com/youngturk/archive/2012/11/13/391261.htmlyoungturkyoungturkTue, 13 Nov 2012 08:36:00 GMThttp://www.aygfsteel.com/youngturk/archive/2012/11/13/391261.htmlhttp://www.aygfsteel.com/youngturk/comments/391261.htmlhttp://www.aygfsteel.com/youngturk/archive/2012/11/13/391261.html#Feedback1http://www.aygfsteel.com/youngturk/comments/commentRss/391261.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/391261.htmlFCKEditor是一个很好的用于Web面中的格式化文本编译控件。现在越来越多的论坛的发帖页面中更多的用了q个控gQ我们这里将如何在基于Java的web开发中使用FCKEditor控g的步骤提供给大家Qؓ的是让更多的java开发者花Ҏ的旉d重复力_?

首先M载FCKEditor2.6.3Q当然本文编写的时候,q个是最新版本,也许你现在看到的已经是更新的版本了,那么可能某些配置办法已经变化了,本文也将跟进以保持最新动态,相反如果你用的旧版本的控gQ其配置和用方法也有所区别Q,下蝲地址Qhttp://www.fckeditor.net/downloadQ我们需要下载两个文?br /> 
W一是FCKeditor_2.6.3.zipQ就是FCKEditor的控Ӟ

W二是FCKeditor.JavaQfckeditor-java-2.4.1-bin.zipQ,是在Java代码中用FCKEditor的相兛_LQ?

有了q两个文Ӟ使用FCKEditor的基具备了Q接下来我们要做两g事情Q一件事情就是要把FCKEditor控g攑ֈweb目中,q个控g是用于网늚Q所以其代码是用JavaScript脚本~写的,需要和web|页一赯下蝲的浏览器上才能执行,W二件事情就是这个网上的控件因为支持图片的上传与下载,所以在上传与下载的时候需要服务端的支持,那么我们我的java服务端如何支持这个控件的工作呢?FCKEditor自n提供了相关的java工具Q就是我们下载的W二个文件。因此我们要做的W二件事情就是在服务端配|java工具Q得FCKEditor控g在处理上传图片时能够正确工作?

接下来我们就开始对配置FCKEditor控gq行两项工作Q?

W一Q解压羃FCKeditor_2.6.3.zipQ在其中我们能找C个文件夹叫fckeditorQ那么将q个文gҎ个复制到你的web应用的根目录下,是存放jsp面的地斏V?

W二Q解压羃fckeditor-java-2.4.1-bin.zipQ将q样几个jar文g复制到web应用的WEB-INF\lib目录中(commons-fileupload-1.2.1.jarQcommons-io-1.3.2.jarQjava-core-2.4.1.jarQslf4j-api-1.5.2.jarQslf4j-simple-1.5.2.jarQ,其中最后一个文件在q个zip包中可能不存在,那么你可以去q个链接地址下蝲一个文件叫fckeditor-java-2.4.1-bin.zip (下蝲地址Qhttp://sourceforge.net/project/showfiles.php?group_id=75348&package_id=129511)Q在q个war文g中的lib中存在上q的5个jar文gQ其实在war中也包含了FCKEditor控g的内容,也就是说如果你只是下载了war也可以了。然后在classpath目录中创Z个名叫ؓfckeditor.properties的文Ӟ文g中放|一行内容ؓQconnector.userActionImpl=net.fckeditor.requestcycle.impl.UserActionImplQ?

在web.xml中添加一个Servlet的配|,配置内容如下Q?

<servlet>
<servlet>
<servlet-name>Connector</servlet-name>
<servlet-class>net.fckeditor.connector.ConnectorServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Connector</servlet-name>
<url-pattern>/fckeditor/editor/filemanager/connectors/*</url-pattern>
</servlet-mapping>

好了Q现在你已经完成了配|的q程Q接下来我们需要在jsp中用FCKEditor控g了,在需要用这个控件的jsp文g的开头添加标{ֺ的引入语句:<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>Q在使用控gq行文本格式化输入的地方Q原来你可能使用的textarea标签Q用如下的内容来替换原来的输入控gQ?

<FCK:editor instanceName="EditorDefault">

控g中要昄的初始内?

</FCK:editor>

其中instanceName属性的值就相当于form表单中的input的name倹{就是表单提交时候的键值对中的键的名字?



youngturk 2012-11-13 16:36 发表评论
]]>
EL表达式不起作用原?/title><link>http://www.aygfsteel.com/youngturk/archive/2012/11/13/391246.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Tue, 13 Nov 2012 03:04:00 GMT</pubDate><guid>http://www.aygfsteel.com/youngturk/archive/2012/11/13/391246.html</guid><wfw:comment>http://www.aygfsteel.com/youngturk/comments/391246.html</wfw:comment><comments>http://www.aygfsteel.com/youngturk/archive/2012/11/13/391246.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/youngturk/comments/commentRss/391246.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/youngturk/services/trackbacks/391246.html</trackback:ping><description><![CDATA[web.xml?.4版本的默认导入的standerd.jar,和jstl.jar是用el表达式的包是启动?br />?.5版本的web.xml中默认是关闭?br />所以在2.5的所有jsp中需要启动一?br />?lt;% page isELIgnored="false"%><br /><br /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">el表达式不起作?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">        今天用el表达式,老是得不到后Cq来的倹{该导入的jar包和标签库也都导入了。还是不起作用。后来在|上扑ֈ一文章。解决了。原来是版本的问题。现在脓一下?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">tomcat5.0的版? 使用了低版本Q只求稳定?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">web.xml</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><?xml version="1.0" encoding="ISO-8859-1"?></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><web-app xmlns="http://java.sun.com/xml/ns/j2ee"</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"</span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    version="2.4"></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">2.4版本默认启用el表达式,如果使用2.5版本Q默认el表达式是关闭?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><?xml version="1.0" encoding="UTF-8"?></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><web-app xmlns="http://java.sun.com/xml/ns/javaee" </span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" </span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   </span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">那么对应2.5的web.xml -->  jsp面里应该增?lt;%@ page isELIgnored="false"%></span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">一句话Q凡是部|描q文仉循Servlet2.4规范的WEB应用QEL表达式的计算默认是启用的Q而未遵@的,则EL表达式的计算默认是禁用的?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">所以解x案还可以是:web.xml中的DTD(文档cd定义)攚w2.4的版?/span><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><br style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; font: 14px/26px Arial; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" /><span style="text-align: left; widows: 2; text-transform: none; background-color: rgb(255,255,255); text-indent: 0px; display: inline !important; font: 14px/26px Arial; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: rgb(51,51,51); word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">我用的是在公共页中加?lt;%@ page isELIgnored="false"%>Q然后每个页面引入公共页。问题解决了?/span><img src ="http://www.aygfsteel.com/youngturk/aggbug/391246.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/youngturk/" target="_blank">youngturk</a> 2012-11-13 11:04 <a href="http://www.aygfsteel.com/youngturk/archive/2012/11/13/391246.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>excel文g下蝲,数据库字Ddatafiled?-JS URL传值给servletqhttp://www.aygfsteel.com/youngturk/archive/2012/09/20/388195.htmlyoungturkyoungturkThu, 20 Sep 2012 09:04:00 GMThttp://www.aygfsteel.com/youngturk/archive/2012/09/20/388195.htmlhttp://www.aygfsteel.com/youngturk/comments/388195.htmlhttp://www.aygfsteel.com/youngturk/archive/2012/09/20/388195.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/388195.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/388195.html 

1 //javascript里面加密两次Q两ơ才可以的? var url = "servlet/getText?name=" + encodeURI(encodeURI(name));
<script language="javascript" type="text/javascript">
        function show()
        {
         var name="test";
         var admin="ok";
         var url = "http://localhost:7001/sosuo/ggld/fleet?reloadVessel=" 
           + encodeURI(encodeURI(name))+"
&reloadVoyage="+ encodeURI(encodeURI(admin));
            window.open(url);
        }
    
</script>

1 //在java里面Q通过指定的编码解密即可? String name = URLDecoder.decode(request.getParameter("name"),"utf-8");

web.xml配置:
<servlet> <!-- 新添?nbsp;车队 download -->        <servlet-name>fleetDataDownload</servlet-name>        <servlet-class>com.cenin.util.FleetDataDownload</servlet-class>    </servlet>
<servlet-mapping>        <servlet-name>fleetDataDownload</servlet-name>        <url-pattern>/ggld/fleet</url-pattern>    </servlet-mapping>

DataDownload.java面:

package com.cenin.util;


import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.net.*;
import java.sql.*;

import org.apache.commons.digester.Digester;
import org.apache.log4j.Logger;
import com.cenin.database.DBManager;



public class DataDownload  extends HttpServlet 
{
    private static   Logger logger = Logger.getLogger(DataDownload .class);
    
    public void init(ServletConfig config) throws ServletException 
    {
        super.init(config);
        try
        {
        }
        catch(Exception ex)
        {
            logger.info(ex.getMessage());
        }

    }
    public void doGet(HttpServletRequest request, HttpServletResponse response)  throws ServletException, IOException 
    {
        doPost(request,response);
    }
    public void doDownload(HttpServletRequest request, HttpServletResponse response, String fileName, String vessel, String voyage)
    {
        try
        {
            
            response.reset();
            response.setContentType("application/vnd.ms-excel");
            response.setHeader("Content-Disposition", "inline; filename=\""+ fileName  + "\"");
            ServletOutputStream sos = response.getOutputStream();
            String title = "数据导出";


            String[] fieldTitles = {"船名", "航次", "提单?, "号", "铅封?, "型", "货名", "重量", "体积", "发货?, "收货?, "装货?, "卸货?};
            String[] fieldNames = {"szVessel", "szVoyage", "szBlNo", "szCtnNo", "szSealNo", "szCtnType", "szCargoName", "fWeight", "fVolume", "szReceiver", "szSender", "szLoadPortCode", "szDischargePortCode"};
            int[] widths = {100, 50, 100, 120, 120, 50, 100, 50, 50, 80, 80, 80, 80};

            Connection conn = DBManager.getInstance().getConnection();
            Statement stmt=conn.createStatement(); 
            String sql = "select * from NmhContainer where szVessel='" + 
                    vessel + "' and szVoyage='" + voyage + "'"; // and szBlNo='" + blno + "'";
            ResultSet rs = stmt.executeQuery(sql);
            OutputUtil.excelOutput(title, fieldTitles, fieldNames, widths, rs, sos, "ISO-8859-1", "GBK");
            
            DBManager.getInstance().freeDBResource(rs, stmt, conn);
            
        }
        catch(Exception ex)
        {
            logger.info(ex.getMessage());
        }
        
    }
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException 
    {
        try
        {
            String vessel = request.getParameter("reloadVessel");
            String voyage = request.getParameter("reloadVoyage");
            //String blno = request.getParameter("reloadBlno");
            String name = vessel + "_" + voyage + "_" + ".xls";
            doDownload(request, response, name, vessel, voyage);
            
        }
        catch(Exception ex)
        {
            logger.info(ex.getMessage());
        }

        
        
    }
}

OutputUtil.java面:

package com.cenin.util;
/*
 * 输出PDF, Excel{格?br /> * 2005.5.12 by chenyong@cenin
 * 2005.12.19
 */


import jxl.Workbook;
import jxl.write.*;
import com.lowagie.text.Document;
import com.lowagie.text.Rectangle;
import com.lowagie.text.Font;
import com.lowagie.text.PageSize;
import com.lowagie.text.HeaderFooter;
import com.lowagie.text.Phrase;
import com.lowagie.text.Element;
import com.lowagie.text.Table;
import com.lowagie.text.pdf.*;
import java.io.*;
import java.util.*;
import java.sql.*;
import org.apache.log4j.Logger;


public class OutputUtil  
{
    private static Logger logger = Logger.getLogger(OutputUtil.class);
    /*******************************************************
    * pdf输出表格
    * title为pdf head
    * fieldtitles?nbsp;表头目名称数组
    * filenames ?nbsp; 对象属性名数组
    * widths ?nbsp;宽度Q数l?br />    * rs为resultset
    * os 出流
    * codefrom , codeto 如果需要编码{?br />    *******************************************************/    
    public static void excelOutput(String title, String[] fieldtitles, String[] fieldnames, int[] widths, ResultSet rs, OutputStream os, String codefrom, String codeto)
    {
        
        try
        {
            int fieldnumber = fieldnames.length; //, cellnumber = fieldnumber*5;
            if(fieldnumber!=fieldtitles.length||fieldnumber!=fieldnames.length)
                return;

            WritableWorkbook workbook = Workbook.createWorkbook(os);
            WritableSheet sheet = workbook.createSheet(title, 0);
            
            //add field title
            for(int i=0;i
<fieldnumber;i++)
            {
                //String temp 
= new String(fieldtitles[i].getBytes(codefrom), codeto);
                sheet.addCell(new Label(i, 0, fieldtitles[i]));
                
            }
            //add values
            int i
=0;
            
while(rs.next())
            {
                for(int j
=0; j<fieldnames.length; j++)
                {
                    if(rs.getString(fieldnames[j])!
=null)
                    
{
                        //String temp1 
= rs.getString(fieldnames[j]);
                        
String temp = new String(rs.getString(fieldnames[j]).getBytes("ISO-8859-1"), "GBK");
                        sheet.addCell(new Label(j, i+1, temp));
                    }
                    else
                        sheet.addCell(new Label(j, i+1, ""));
                }
                i++;
            }
            //write to excel
            workbook.write();
            workbook.close();
            
        }
        catch(Exception e)
        {
            logger.info(e.toString());
        }
            
    }

}

/*例子
FileOutputStream os 
= new FileOutputStream("e:\\a.xls");
String[] titles 
= {"pȝ~号","员工","用户帐号"};
String[] fieldnames = {"lsystemUserId","staff.szname","szaccount"};
int[] widths = {20,20,20}; 
//OutputUtil.pdfOutput("my pdf输出", titles, fieldnames, widths,objectList,os);
//OutputUtil.excelOutput("excel输出", titles, fieldnames, widths,objectList,os);

*/

 



youngturk 2012-09-20 17:04 发表评论
]]>
flex回调js,在主面html中添?http://www.aygfsteel.com/youngturk/archive/2012/09/13/387628.htmlyoungturkyoungturkThu, 13 Sep 2012 03:41:00 GMThttp://www.aygfsteel.com/youngturk/archive/2012/09/13/387628.htmlhttp://www.aygfsteel.com/youngturk/comments/387628.htmlhttp://www.aygfsteel.com/youngturk/archive/2012/09/13/387628.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/387628.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/387628.htmlprivate function onLinkBtnClick(event:Event):void{
                if(linkBtnClickLoad!=null && linkBtnClickLoad!=""){
                       //CommonUtil.openWebPage(linkBtnClickLoad,null);
                       //var urlRequest:URLRequest = new URLRequest(Setting.serverUrl+linkBtnClickLoad); 
                       //navigateToURL(urlRequest,"_blank");
//                       ExternalInterface.call("linkButtonOpen",Setting.serverUrl+linkBtnClickLoad);
                       ExternalInterface.call("linkButtonOpen","http://localhost:7002/greatSpringCXFWebservice/"+linkBtnClickLoad);
                       return;
主页面Htmld:
<script  type="text/javascript">
     function linkButtonOpen(values){
        window.open(values,'_blank','top=0,left=0,toolbar=no,menubar=no,resizable=yes,location=no,scrollbars=yes,status=no');
 }
 
</script>
                }
ExternalInterface.addCallback("selectMenu",selectMenu);

youngturk 2012-09-13 11:41 发表评论
]]>
js中onload调用两种ҎQ先加蝲js再加载页面和先加载页面后加蝲jshttp://www.aygfsteel.com/youngturk/archive/2012/07/17/383322.htmlyoungturkyoungturkTue, 17 Jul 2012 09:00:00 GMThttp://www.aygfsteel.com/youngturk/archive/2012/07/17/383322.htmlhttp://www.aygfsteel.com/youngturk/comments/383322.htmlhttp://www.aygfsteel.com/youngturk/archive/2012/07/17/383322.html#Feedback2http://www.aygfsteel.com/youngturk/comments/commentRss/383322.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/383322.html
  • window.onload=ShowMessage();   
  • 先页面加载过E,直接调用ShowMessage();   Ҏ
    2.

    window.onload=function(){ShowMessage();}   


    先加载页面,面加蝲完毕再调用ShowMessage()

    youngturk 2012-07-17 17:00 发表评论
    ]]>
    关于getParamater()的?/title><link>http://www.aygfsteel.com/youngturk/archive/2012/05/11/377902.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Fri, 11 May 2012 06:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/youngturk/archive/2012/05/11/377902.html</guid><wfw:comment>http://www.aygfsteel.com/youngturk/comments/377902.html</wfw:comment><comments>http://www.aygfsteel.com/youngturk/archive/2012/05/11/377902.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/youngturk/comments/commentRss/377902.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/youngturk/services/trackbacks/377902.html</trackback:ping><description><![CDATA[<input type=hidden name="nameInput" id="idInput" /><br />在freemarker中getParamaterQnameQ获得的gؓ付给id的idInput的?<img src ="http://www.aygfsteel.com/youngturk/aggbug/377902.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/youngturk/" target="_blank">youngturk</a> 2012-05-11 14:30 <a href="http://www.aygfsteel.com/youngturk/archive/2012/05/11/377902.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>javascriptCZhttp://www.aygfsteel.com/youngturk/archive/2007/07/26/132589.htmlyoungturkyoungturkThu, 26 Jul 2007 09:19:00 GMThttp://www.aygfsteel.com/youngturk/archive/2007/07/26/132589.htmlhttp://www.aygfsteel.com/youngturk/comments/132589.htmlhttp://www.aygfsteel.com/youngturk/archive/2007/07/26/132589.html#Feedback1http://www.aygfsteel.com/youngturk/comments/commentRss/132589.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/132589.html   1事g源对?nbsp;   2event.srcElement.tagName    3...  阅读全文

    youngturk 2007-07-26 17:19 发表评论
    ]]>
    javaScripthttp://www.aygfsteel.com/youngturk/archive/2006/12/28/90613.htmlyoungturkyoungturkThu, 28 Dec 2006 15:29:00 GMThttp://www.aygfsteel.com/youngturk/archive/2006/12/28/90613.htmlhttp://www.aygfsteel.com/youngturk/comments/90613.htmlhttp://www.aygfsteel.com/youngturk/archive/2006/12/28/90613.html#Feedback0http://www.aygfsteel.com/youngturk/comments/commentRss/90613.htmlhttp://www.aygfsteel.com/youngturk/services/trackbacks/90613.htmlfunction   doPan(value){   //指定Main表单提交的URL  
      document.Main.action.value   =   value;   //value   Form提交的url  
      document.Main.submit();   //提交  
      }

    youngturk 2006-12-28 23:29 发表评论
    ]]>
    表单的验?/title><link>http://www.aygfsteel.com/youngturk/archive/2006/12/28/90549.html</link><dc:creator>youngturk</dc:creator><author>youngturk</author><pubDate>Thu, 28 Dec 2006 09:38:00 GMT</pubDate><guid>http://www.aygfsteel.com/youngturk/archive/2006/12/28/90549.html</guid><wfw:comment>http://www.aygfsteel.com/youngturk/comments/90549.html</wfw:comment><comments>http://www.aygfsteel.com/youngturk/archive/2006/12/28/90549.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/youngturk/comments/commentRss/90549.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/youngturk/services/trackbacks/90549.html</trackback:ping><description><![CDATA[ <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">提交表单后,需要对信息q行验证。表单的验证有两U:客户端验证和服务器验证?/span> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q?/span> <span lang="EN-US">1</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q表单的客户端验?/span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">       </span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表单的客L验证主要是通过</span> <span lang="EN-US">JavaScript</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来完成的?/span> </p> <p class="MsoNormal"> <span lang="EN-US"><html></span> </p> <p class="MsoNormal"> <span lang="EN-US"><head></span> </p> <p class="MsoNormal"> <span lang="EN-US"><title></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">客户端验?/span> <span lang="EN-US"></title></span> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"><Script><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">function Check()<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">{<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>username=document.form1.username.value;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>age=document.form1.age.value;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>year=document.form1.year.value;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>email=document.form1.email.value;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><!--</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">验证提交数据的长?/span> <span lang="EN-US">--><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>if(<span id="wmqeeuq" class="SpellE">username.length</span><2||username.length>8)<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>{<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>alert("</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">用户名长度必d</span> <span lang="EN-US">2</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">位到</span> <span lang="EN-US">8</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">位之?/span> <span lang="EN-US">");<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>return false;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>}<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><!--</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">验证提交数据的范?/span> <span lang="EN-US">--><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>if(<span id="wmqeeuq" class="SpellE">age.length</span>!=2||isNaN(age)||<span id="wmqeeuq" class="SpellE">parseInt</span>(age)<20||parseInt(age)>50)<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>{<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>alert("</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">你的q龄不符合我们的要求Q?/span> <span lang="EN-US">");<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>return false;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>}<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <o:p> </o:p> </span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><!--</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">验证提交数据的类?/span> <span lang="EN-US">--><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><!--</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">限定出生q䆾是一?/span> <span lang="EN-US">4</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">位整?/span> <span lang="EN-US">--><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>if(<span id="wmqeeuq" class="SpellE">year.length</span>!=4||isNaN(year))<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>{<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>alert("</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">q䆾填写不正!</span> <span lang="EN-US">");<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>return false;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>}<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><!--</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">限定电子邮箱不能为空Q且必须要有?/span> <span lang="EN-US">@</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">”和?/span> <span lang="EN-US">.</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span> <span lang="EN-US">--><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>if(<span id="wmqeeuq" class="SpellE">email.length</span>==""||(<span id="wmqeeuq" class="SpellE">email.indexOf</span>('@')==-1)||(<span id="wmqeeuq" class="SpellE">email.indexOf</span>('.')==-1))<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>{<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>alert("</span> </b> <b style="mso-bidi-font-weight: normal"> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">电子邮g填写不正!</span> <span lang="EN-US">");<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">      </span>return false;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>}<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span>return true;<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US">}<o:p></o:p></span> </b> </p> <p class="MsoNormal"> <b style="mso-bidi-font-weight: normal"> <span lang="EN-US"></Script><o:p></o:p></span> </b> </p> <p class="MsoNormal"> <span lang="EN-US"></head></span> </p> <p class="MsoNormal"> <span lang="EN-US"><body></span> </p> <p class="MsoNormal"> <span lang="EN-US"><h3></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">客户端验?/span> <span lang="EN-US"></h3></span> </p> <p class="MsoNormal"> <span lang="EN-US"><form name="form1" action="<span id="wmqeeuq" class="SpellE">X.jsp</span>" <span id="wmqeeuq" class="SpellE">OnSubmit</span>="return Check();"></span> </p> <p class="MsoNormal"> <span lang="EN-US"><p></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">?/span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">名:</span> <span lang="EN-US"><input name="username"></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"><p></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">q?/span> <span lang="EN-US">&<span id="wmqeeuq" class="SpellE">nbsp;&nbsp;&nbsp;&nbsp</span>;</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">龄:</span> <span lang="EN-US"><input name="age"></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"><p></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">出生q䆾Q?/span> <span lang="EN-US"><input name="year"></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"><p></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">电子邮gQ?/span> <span lang="EN-US"><input name="email"></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"><p><input type=Submit value="</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">提交</span> <span lang="EN-US">"></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"></form></span> </p> <p class="MsoNormal"> <span lang="EN-US"></body></span> </p> <p class="MsoNormal"> <span lang="EN-US"></html></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q?/span> <span lang="EN-US">2</span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">Q表单的服务器端验证</span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">       </span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">表单的服务器端验证是通过服务器端?/span> <span id="wmqeeuq" class="SpellE"> <span lang="EN-US">X.jsp</span> </span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">来完成的?/span> <span lang="EN-US"> <o:p> </o:p> </span> </p> <p class="MsoNormal"> <span lang="EN-US"><html></span> </p> <p class="MsoNormal"> <span lang="EN-US"><head></span> </p> <p class="MsoNormal"> <span lang="EN-US"><title>A Form</title></span> </p> <p class="MsoNormal"> <span lang="EN-US"></head></span> </p> <p class="MsoNormal"> <span lang="EN-US"><body></span> </p> <p class="MsoNormal"> <span lang="EN-US"><h3>The form will be checked by the Server.</h3></span> </p> <p class="MsoNormal"> <span lang="EN-US"><form name="fm" action="<span id="wmqeeuq" class="SpellE">XXX.jsp</span>" method="post"></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span><p><span id="wmqeeuq" class="SpellE">UserName</span>:</span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><input type="text" name="username"></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span><p><span id="wmqeeuq" class="SpellE">PassWord</span>:</span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><input type="password" name="password"></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span><p><span id="wmqeeuq" class="SpellE">BirthYear</span>:</span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><input type="text" name="<span id="wmqeeuq" class="SpellE">birthyear</span>"></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span><p><center></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><a <span id="wmqeeuq" class="SpellE">href</span>='<span id="wmqeeuq" class="SpellE">JavaScript:fm.submit</span>();'></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">提交</span> <span lang="EN-US"></a></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">    </span><a <span id="wmqeeuq" class="SpellE">href</span>='<span id="wmqeeuq" class="SpellE">JavaScript:fm.reset</span>();'></span> <span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">重置</span> <span lang="EN-US"></a></span> </p> <p class="MsoNormal"> <span lang="EN-US"> <span style="mso-spacerun: yes">  </span></center></p></span> </p> <p class="MsoNormal"> <span lang="EN-US"></form></span> </p> <p class="MsoNormal"> <span lang="EN-US"></body></span> </p> <p class="MsoNormal"> <span lang="EN-US"></html></span> </p> <img src ="http://www.aygfsteel.com/youngturk/aggbug/90549.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/youngturk/" target="_blank">youngturk</a> 2006-12-28 17:38 <a href="http://www.aygfsteel.com/youngturk/archive/2006/12/28/90549.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ǹ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">Ԫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ع</a>| <a href="http://" target="_blank">ͨ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˹</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">¡</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ӱ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ƽ</a>| <a href="http://" target="_blank">ന</a>| <a href="http://" target="_blank">żҸ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Ժ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">С</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>