??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲变态另类一区二区三区,亚洲精品综合久久中文字幕 ,亚洲av伊人久久综合密臀性色http://www.tkk7.com/windforce/archive/2007/07/27/132879.html风之?/dc:creator>风之?/author>Fri, 27 Jul 2007 12:04:00 GMThttp://www.tkk7.com/windforce/archive/2007/07/27/132879.htmlhttp://www.tkk7.com/windforce/comments/132879.htmlhttp://www.tkk7.com/windforce/archive/2007/07/27/132879.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/132879.htmlhttp://www.tkk7.com/windforce/services/trackbacks/132879.html
如果控制因ؓ一个return,continue或break语句dq个try?那么finally快会在控制{Ud它的新的目标代码之前执行.

也就是说如果在finally块中使用return,continue或break。逻辑可能׃是你本n要表辄意思了?br />package test;

public class TryTest {
    public static void main(String[] args) {
        try {
            System.out.println(TryTest.test());// q回l果为true其没有Q何异?br />        } catch (Exception e) {
            System.out.println("Exception from main");
            e.printStackTrace();
        }
    }

    public static boolean test() throws Exception {
        try {
            throw new Exception("Something error");// 1.抛出异常
        } catch (Exception e) {// 2.捕获的异常匹?声明cL其父c)Q进入控制块
            System.out.println("Exception from e");// 3.打印
            return false;// 4. return前控制{Udfinally?执行完后再返?br />        } finally {
            return true; // 5. 控制转移Q直接返回,吃掉了异?br />        }
    }
}


]]>
?'b_col' 在选择列表中无效,因ؓ该列未包含在聚合函数中,q且没有 GROUP BY 子句http://www.tkk7.com/windforce/archive/2007/07/26/132598.html风之?/dc:creator>风之?/author>Thu, 26 Jul 2007 09:53:00 GMThttp://www.tkk7.com/windforce/archive/2007/07/26/132598.htmlhttp://www.tkk7.com/windforce/comments/132598.htmlhttp://www.tkk7.com/windforce/archive/2007/07/26/132598.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/132598.htmlhttp://www.tkk7.com/windforce/services/trackbacks/132598.html指定 GROUP BY Ӟ选择列表中Q一非聚合表辑ּ内的所有列都应包含?GROUP BY 列表中,或?GROUP BY 表达式必M选择列表表达式完全匹配?br />是说要 select sum(a_col) ,sum(b_col) from abc_table group by a_col?br />?br />select sum(a_col) ,sum(b_col) from abc_table
union
select sum(a_col) ,sum(b_col) from abc_table 又是正常的?br />


]]>
ORACLE客户端连服务器的注意事项Q[转]http://www.tkk7.com/windforce/archive/2007/07/05/128240.html风之?/dc:creator>风之?/author>Thu, 05 Jul 2007 01:35:00 GMThttp://www.tkk7.com/windforce/archive/2007/07/05/128240.htmlhttp://www.tkk7.com/windforce/comments/128240.htmlhttp://www.tkk7.com/windforce/archive/2007/07/05/128240.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/128240.htmlhttp://www.tkk7.com/windforce/services/trackbacks/128240.html
        1. 通过SQL*NET协议QORACLE客户端连服务器时一般需要配|sqlnet.ora和tnsnames.ora?br />    它们默认的目录在$ORACLE_HOME/network/admin 目录?br />   
   也可以设|环境变量TNS_ADMIN指向你想用的sqlnet.ora和tnsnames.ora目录
   例如Q?br />    TNS_ADMIN=/home/oracle/config/9.0.1;export TNS_ADMIN
  
   sqlnet.ora文g军_找数据库服务器别名的方式
  
   默认的参数有
   NAMES.DEFAULT_DOMAIN = WORLD
   NAMES.DIRECTORY_PATH = (TNSNAMES, ONAMES, HOSTNAME)
  
   如果你的ORACLE客户端和服务器默认的域名不一P需要用#h释第一?br />    #NAMES.DEFAULT_DOMAIN = WORLD
   使它不v作用?br />
           NAMES.DIRECTORY_PATH指定找服务器别名的顺?(本地的tnsnames.ora文g, 命名服务? L名方?
          
           服务器的sqlnet.ora里可以设|检查客L是否alive的时间间?br />           sqlnet.expire_time = 10
          
           tnsnames.ora文g里写数据库服务器别名的详l内容,有以下几U写?

           # 一般的写法          
           APPDB =
             (DESCRIPTION =
               (ADDRESS_LIST =
                 (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.35)(PORT = 1521))
               )
               (CONNECT_DATA =
                 (SERVICE_NAME = appdb)
               )
             )

           # 明确标明用dedicated方式q接数据?br />           APPD=
           (DESCRIPTION=
             (ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.35)(PORT=1521))
             (CONNECT_DATA=
               (SERVICE_NAME=appdb)
               (SERVER=DEDICATED)))
   
           # 对多个listener端口做均衡负载方式连接数据库
           APPS =
             (DESCRIPTION =
             (ADDRESS_LIST =
                 (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.35)(PORT = 1521))
                 (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.35)(PORT = 1856))
              )
               (CONNECT_DATA =
                 (SERVICE_NAME = appdb)
               )
             )   
         
     # 注意Q如果数据库服务器用MTSQ客LE序需要用database link时最好明指明客L用dedicated直连方式,
     #       不然会遇到很多跟分布式环境有关的ORACLE BUG?br />     #     一般情况下数据库服务器用直接的q接会好一些,除非你的实时数据库连接数接近1000?br />            
        2. /etc/hosts (UNIX)
           或者windows\hosts(WIN98)  winnt\system32\drivers\etc\hosts (WIN2000)
           客户端需要写入数据库服务器IP地址和主机名的对应关pR?br />          
           127.0.0.1       localhost
           192.168.0.35    oracledb oracledb
           192.168.0.45    tomcat tomcat
           202.84.10.193   bj_db   bj_db   
          
           有些时候我们配|好W一步后Qtnsping 数据库服务器别名昄是成功的Q?br />           但是sqlplus username/password@servicename不?jdbc thin link 也不通的时?        
           一定不要忘了在客户端做q一步,原因可能是DNS服务器里没有讄q个服务器IP地址和主机名的对应关pR?br />          
           如果同时有私有IP和Internet上公有IPQ私有IP写在前面Q公有IP写在后面?br />          
           ~辑前最好留一个备份,增加一行时也最好用复制_脓Q避免编辑hosts时空格或者tab字符错误?br />          
        3. UNIX下ORACLE多数据库的环境,OS客户端需要配|下面两个环境变?br />       
           ORACLE_SID=appdb;export ORACLE_SID
           TWO_TASK=appdb;export TWO_TASK 
          
           来指定默认的目标数据库?img src ="http://www.tkk7.com/windforce/aggbug/128240.html" width = "1" height = "1" />

]]>
Java的中文编E与配置心得[转蝲]http://www.tkk7.com/windforce/archive/2007/06/07/122517.html风之?/dc:creator>风之?/author>Thu, 07 Jun 2007 02:18:00 GMThttp://www.tkk7.com/windforce/archive/2007/06/07/122517.htmlhttp://www.tkk7.com/windforce/comments/122517.htmlhttp://www.tkk7.com/windforce/archive/2007/06/07/122517.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/122517.htmlhttp://www.tkk7.com/windforce/services/trackbacks/122517.htmlJava的中文问题历史悠久,q不绝Q至今也没有完全解决Q但是上有政{下有对{,我们L有办法搞定它的。跟Java相关的中文问题主要有两类Q一cL~程的问题,涉及到I/OQ内码{换等。第二类是Javaq行环境的配|,涉及字体Q属性配|等。我刚刚用了一天的旉解决q些问题Q觉得很有必要给自己写个备忘录之cȝ?

我看q是从问题入手吧Q这样不致于让大家打瞌睡。我惛_个程序,q个E序有个基本功能是昄文g内容Q我用JTextArea来做昄的事情,E序单的到家了,但是是中文都是q。我的配|是JBuilder7QJBuilder自带的JDK1.3.3_b24Q我自己装的JDK是JDK1.4.0_02_b02Q都是主的JDK。操作系l是英文Windows2000加中文支持包?

我尝试换JDKQ?.3.3?.4.0都不行,down一个最新的j2sdk-1_4_1-rc也是不行Q好像不是JDK的问题,于是我就把精力集中到I/O的编码{换上Q我查阅了网上若q关于JAVA中文问题的文章,把编码{换搞的倍儿清楚Q可是怎么试,换什么编码折N不行Q反而显C的更糟p,当初q是q有些规矩Q就是象在纯英文pȝ上显C的那样Q好Ҏq知道那是汉字,只是昄不出来,{我折腾~码Q就变得都是问号了。唉Q郁P

~码转换心得Q?

JAVA内部是UNICODE~码Q在I/O时如果用Reader/Writerp发生~码转换Q用系l属性file.encoding作ؓ~码方式。如果用Stream没有{换的事情了,那是Binary的数据?

有用的方法有Q?。在Reader/Writer上加encoding的选项Q注意编码的方向Q在Reader中的encoding表示把数据从encoding转换成UnicodeQwriter是把Unicode的字W{换成encoding格式的?。用String.getByte()把字W串转换成指定编码?

常用的编码格式:ISO8859_1Q这个是英文pȝ~省?bit~码Q因为是8bit的,所以不会把汉字的高位删去,所以用它也是可以处理汉字的Q我自己q么理解Q总觉得有些不妥,但又不知道不妥在何处Q还望高人指出)。GB2312和GBKQ汉字编码,推荐使用GBKQ它兼容GB2312q且支持更多汉字。UNICODEQ一个大的字W集Q不知是不是国际标准反正大家都支持,使用16位对每个字符~码Q汉字虽然正合适,但英文却吃亏了,要用多一倍的I间来存储,所以很多hq是老大不乐意,写的E序不支持UNICODE?

JSP/Servlet的中文问题有两种解决办法Q?。不在程序中q行~码转换Q把q个工作交给览器,Ҏ是用javac –encoding GBK *.java来编译所有的beanQ然后在JSP面上加

<%@ page contentType="text/html;charset=gb2312" %>

或者是在HTML中直接加Q?

到底加那个,试试q道了Q我也搞不清楚了?

2。在E序中指定编码,用javac –encoding ISO8859_1 *.java来编译所有的beanQ在涉及C文显C的E序上加

str=new String(str.getBytes("ISO8859_1"));

上面两种Ҏ不能LQ意思就是要么就是GBKQ要么就是ISO8859_1Q从里到外都一样就好了?

数据库JDBC的中文问题,一般只要按照数据库指定的编码进行{换,比如按照ISO8859_1读,ISO8859_1写,一般就没什么问题了?

虽然有这些编码上的心得,但是q不能解x的问题。看来我的程序输入输出用的都是ISO8859_1Q我的问题跟~码没什么关pR是不是字体的问题呢Q在Swing的组件中Q字体L那么几个Q基本上是定ȝQ选那个都不行。但是我H然发现可以更改q些字体的配|,是font.properties q个文gQ一般JDK都带了中文的字体配置文gQ可能是font.properties.zh之类的,不同版本的JDK名字有些差别Q你要做的就是用中文的配|覆盖font.properties文g。我满心Ƣ喜的以为成功了Q但是失败无情的又一ơ打M我。不是这U方法不对,但是在Windowspȝ中,java能够比较自动的检查你的系l编码,使用最合适的字体配置文gQ一般不需要你改动了,在JDK1.2之前实是要q么改的Q难怪那文章是JDK1.1的文呢?

qfont.properties也不灵了Q唉Q是不是JBuilder有问题呀Q到了这儿,我不得不怀疑它了,虽然它从没让我失望过Q我xJBuilderQ拿起JDK命o行,哎呀Q可q中文竟然出来了!直是.....莫名其妙呀Q因为JBuilder也是用的q个JDK呀Q没理由呀Q我再次打开JBuilderQ运行,qQ怪事.......我来看看.....我把JBuilder里面的执行命令拷贝到DOSH口里手动执?...没有中文.....怪怪怪,我仔l对照我手敲的命令和JBuilder拷出来的命oQ除了我用的是java它用的是javaw之外Q别的几乎都一PN.......q个java和javaw竟然会不一P

?......要我说什么呢Q答案就是这个了Qjavaw会用与java不同的Local配置q行工作Q导致了我一直看不到中文Q而java是好好的。JBuilder也是好好的,没有问题Q调用javaw也不是它的错Q难道你xơ运行或者调试的时候蹦ZDOS黑框么?呵呵。这是JDK的一个BugQ我在java的网站上查到q个bugQ描q的情况跟我的一P然后Sun说这个Bug已经修复了,嘿嘿Q简直就是扯淡!修复个茄子!Bug~号是:4629351。不信可以去看看?

但是N我就不能在JBuilder里面看我可爱的中文了吗?好像JBuilder5的时候还能选择是用javaq是javawQ现在好像没法儿选了。怎么才能让javaw支持中文呢?l过又是一番苦苦查找,竟然没有什么结果,郁闷Q正当苦闷之ӞH然惌v当初配置qUNIX下的TOMCATQ好像加了些启动参数Q就能让tomcat支持中文了,赶快d以前的文档,啊,q好我当初写了工作心得,要不然又抓瞎了。其实道理很单,是lJAVA虚拟机加上一些属性:

-Dfile.encoding=GBK -Ddefault.client.encoding=GBK -Duser.language=zh -Duser.region=CN

把它跟在javaw的命令行后面当参敎ͼ哈哈Q搞定!

在JBuilder中选择Project->Project Properties->run->edit->VM ParametersQ填上就行了Q?

配置心得Q?

在JDK低版本和UNIX下,需要改动font.propertiesQ让JAVA VM能够扑ֈ合适的字体来显C汉字?

目前为止Qjavaw有BugQ只使用英文的LocalQ需要给VM加上属性才行正常显CZ文?br />文章出处Q?a >Java?www.javajia.com)



]]>
关于安装mssqlserver时老是提示以前有一个安装被挂v,要求重新启动http://www.tkk7.com/windforce/archive/2007/05/29/120675.html风之?/dc:creator>风之?/author>Tue, 29 May 2007 05:47:00 GMThttp://www.tkk7.com/windforce/archive/2007/05/29/120675.htmlhttp://www.tkk7.com/windforce/comments/120675.htmlhttp://www.tkk7.com/windforce/archive/2007/05/29/120675.html#Feedback3http://www.tkk7.com/windforce/comments/commentRss/120675.htmlhttp://www.tkk7.com/windforce/services/trackbacks/120675.html

关于安装mssqlserver时老是提示以前有一个安装被挂v,要求重新启动

解决Ҏ:
打开注册?删除
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

下PendingFileRenameOperations子键?/p>

可以了

 



]]>
郁闷的~~c3p0q接池配|?/title><link>http://www.tkk7.com/windforce/archive/2007/04/20/112202.html</link><dc:creator>风之?/dc:creator><author>风之?/author><pubDate>Fri, 20 Apr 2007 06:49:00 GMT</pubDate><guid>http://www.tkk7.com/windforce/archive/2007/04/20/112202.html</guid><wfw:comment>http://www.tkk7.com/windforce/comments/112202.html</wfw:comment><comments>http://www.tkk7.com/windforce/archive/2007/04/20/112202.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/windforce/comments/commentRss/112202.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/windforce/services/trackbacks/112202.html</trackback:ping><description><![CDATA[正常配置Q?br /><bean id="dataSource"<br />  class="com.mchange.v2.c3p0.ComboPooledDataSource"<br />  destroy-method="close"><br />  <property name="driverClass"><br />   <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value><br />  </property><br />  <property name="jdbcUrl"><br />   <value>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=xxx</value><br />  </property><br />  <property name="user"><br />   <value>xxx</value><br />  </property><br />  <property name="password"><br />   <value>xxx</value><br />  </property><br /> </bean><br />使用IDE格式化后Q变?br /><bean id="dataSource"<br />  class="com.mchange.v2.c3p0.ComboPooledDataSource"<br />  destroy-method="close"><br />  <property name="driverClass"><br />   <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value><br />  </property><br />  <property name="jdbcUrl"><br /><font color="#ff3300">   <value><br />      jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=xxx<br />   </value><br /></font>  </property><br />  <property name="user"><br />   <value>xxx</value><br />  </property><br />  <property name="password"><br />   <value>xxx</value><br />  </property><br /> </bean><br />死zM不认得了Q我狂晕?...<br /><br /><img src ="http://www.tkk7.com/windforce/aggbug/112202.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/windforce/" target="_blank">风之?/a> 2007-04-20 14:49 <a href="http://www.tkk7.com/windforce/archive/2007/04/20/112202.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>盘点2006【原创?/title><link>http://www.tkk7.com/windforce/archive/2007/01/03/91588.html</link><dc:creator>风之?/dc:creator><author>风之?/author><pubDate>Wed, 03 Jan 2007 09:08:00 GMT</pubDate><guid>http://www.tkk7.com/windforce/archive/2007/01/03/91588.html</guid><wfw:comment>http://www.tkk7.com/windforce/comments/91588.html</wfw:comment><comments>http://www.tkk7.com/windforce/archive/2007/01/03/91588.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/windforce/comments/commentRss/91588.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/windforce/services/trackbacks/91588.html</trackback:ping><description><![CDATA[ <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">大学毕业出来也已l半q。这半年来的学到最多的应该是工作的心态,人生的规划?span lang="EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">大学的时候更多的q是一U应试的生活态度Q每q只要可以考过期末考试?span lang="EN-US">ok</span>了。其他的时候学校对学生是没有硬性要求的。当Ӟ有的人利用课余的旉学习充电。更早的L触了C会、工作。ؓ自己的将来打下了坚实的基。而有的h则在游戏中虚度了青春q华。我是后者中的一员?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">出来扑ַ作的时候,才真正意识到自己的不뀂考试Ҏ来说没什么意义,一个学期不上课。最后还是可以轻N过。但是真正到面试公司问我做过什么项目是。我懵了,刚毕业你问我做什么项目?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">ȝq是扑ֈ了工作。刚开始,没有Z教你该怎么做。一切都要自己动手,没有所谓的培训。学习都是靠自己抽时间来完成。没有h会gd东西Q当时做目的时候。交l你的Q务是没有所谓的“我没学q”的理由?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">到年底了Q也打听了下其他同学的状c自p是在C会的底层生zd。现实ƈ不是和学校里惌的那h子。在学校Q每个月有伙食费再加那么一点点的零花就q的很安怺。现在满脑子惛_的都是钱?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">U篏。生zȝ真谛Qh生就是要U篏。一点一滴的U篏。Q何的工作成果Q都应该有一个合理有效的方式其攉Z后可以复用的资源。这样工作才有进步,而自w的价值才可以沉淀、升倹{大学的学习q程是自q一个空档期。ƈ不是没有试d习新的东ѝ而是l过一D|间的学习后。就放下了,没有整理。久而久之就又忘了。就q玩游戏也是Q玩一个丢一个。连帐号密码都会忘了Q的是太随便了。这U随性的性格、习惯也注定了我要碰壁、失败?span lang="EN-US"><o:p></o:p></span></span> </p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 24pt; LINE-HEIGHT: 150%; mso-char-indent-count: 2.0"> <span style="FONT-SIZE: 12pt; LINE-HEIGHT: 150%; FONT-FAMILY: 仿宋_GB2312">规划。选择真正适合自己的\、自己喜Ƣ的工作方式、自己喜Ƣ的生活方式。h生要靠自己去开拓,只有自己才是最清楚自己的真实能力、了解自q渴望。没有规划就像航中找不到方向。原地踏步或者是l圈子,注定不会L到属于自q港湾?span lang="EN-US"><o:p></o:p></span></span> </p> <img src ="http://www.tkk7.com/windforce/aggbug/91588.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/windforce/" target="_blank">风之?/a> 2007-01-03 17:08 <a href="http://www.tkk7.com/windforce/archive/2007/01/03/91588.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IE不加载ActiveX控g【原创?/title><link>http://www.tkk7.com/windforce/archive/2007/01/03/91577.html</link><dc:creator>风之?/dc:creator><author>风之?/author><pubDate>Wed, 03 Jan 2007 08:50:00 GMT</pubDate><guid>http://www.tkk7.com/windforce/archive/2007/01/03/91577.html</guid><wfw:comment>http://www.tkk7.com/windforce/comments/91577.html</wfw:comment><comments>http://www.tkk7.com/windforce/archive/2007/01/03/91577.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/windforce/comments/commentRss/91577.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/windforce/services/trackbacks/91577.html</trackback:ping><description><![CDATA[q段旉在做目实施。其中遇C个用户就是死z装不上activex控g?br />具体处理Q?、修改IE讄。直接将站点d到“安全站点”,安全U别设ؓ默认。结果——失败。。。登陆进去进入加载界面,pȝ仍然毫无反映?br />2、将相关dll文g打包传给用户Q用regsvr32手工注控件。控件注册过E没有问题,相关注册表项目齐全。打开IEQ“工具”—?gt;“管理加载项”—?gt;“系l已加蝲控g”。踪影全无,q入对应功能Q还是报错?br />3、查询相兌料,忽然惌v有一N止恶意Y件的工具“notroubleme”。下来一?br />Q症状和上面提到的一栗查询修改,原来是在loacal_machine—?gt;software—?gt;microsoft—?gt;Internet Explorer—?gt;ActiveX Compatibility下新Z一个以控gclassID的注册项。Compatibility Flags设ؓ400Q将其改?Q终于可以看到控件正常运作了?img src ="http://www.tkk7.com/windforce/aggbug/91577.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/windforce/" target="_blank">风之?/a> 2007-01-03 16:50 <a href="http://www.tkk7.com/windforce/archive/2007/01/03/91577.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>spring下lob数据处理【原创?/title><link>http://www.tkk7.com/windforce/archive/2006/11/08/79880.html</link><dc:creator>风之?/dc:creator><author>风之?/author><pubDate>Wed, 08 Nov 2006 08:20:00 GMT</pubDate><guid>http://www.tkk7.com/windforce/archive/2006/11/08/79880.html</guid><wfw:comment>http://www.tkk7.com/windforce/comments/79880.html</wfw:comment><comments>http://www.tkk7.com/windforce/archive/2006/11/08/79880.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.tkk7.com/windforce/comments/commentRss/79880.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/windforce/services/trackbacks/79880.html</trackback:ping><description><![CDATA[ <p> <font size="1">做了个简单的通告理Q在本机试时数据量比较。最开始用的时varchar2?000Q之后用hibernate中的textcdQ对应数据库中的Clobcd。当数据量小?000Ӟ可以直接使用setObject()插入数据库。当数据量大?000时。报错:socket write error?br />查找了一些资料,说当数据量超q?000Ӟ应该使用方式操作。看到头昏昏Q烦都烦M......<br />最后发现Spring装了对lob数据的操作,可以直接使用jdbcTemple操作lob数据?br />当用MySql、MSSQL、Oracle 10gӞ使用DefaultLobHandlerQ用Oracle 9i时用OracleLobHandler?br />CZ代码Q【{值javaWorld?br /></font> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <font size="1"> <span style="COLOR: #008080"> 1</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> File binaryFile </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> File(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">c:\\workspace\\wish.jpg</span><span style="COLOR: #000000">"</span></font> <font size="1"> <span style="COLOR: #000000">);<br /></span> <span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> File txtFile </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> File(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">c:\\workspace\\test.txt</span><span style="COLOR: #000000">"</span></font> <font size="1"> <span style="COLOR: #000000">);<br /></span> <span style="COLOR: #008080"> 3</span> </font> <font size="1"> <span style="COLOR: #000000">       <br /></span> <span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> InputStream is </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span></font> <font size="1"> <span style="COLOR: #000000"> FileInputStream(binaryFile);<br /></span> <span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> Reader reader </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span></font> <font size="1"> <span style="COLOR: #000000"> FileReader(txtFile);<br /></span> <span style="COLOR: #008080"> 6</span> </font> <font size="1"> <span style="COLOR: #000000">       <br /></span> <span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">        JdbcTemplate jdbcTemplate </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span></font> <font size="1"> <span style="COLOR: #000000"> JdbcTemplate(dataSource);<br /></span> <span style="COLOR: #008080"> 8</span> </font> <font size="1"> <span style="COLOR: #000000">       <br /></span> <span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> LobHandler lobHandler </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span></font> <font size="1"> <span style="COLOR: #000000"> DefaultLobHandler();<br /></span> <span style="COLOR: #008080">10</span> </font> <font size="1"> <span style="COLOR: #000000">       <br /></span> <span style="COLOR: #008080">11</span> <span style="COLOR: #000000">        jdbcTemplate.execute(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">INSERT INTO test (txt, image) VALUES(?, ?)</span><span style="COLOR: #000000">"</span></font> <font size="1"> <span style="COLOR: #000000">,<br /></span> <span style="COLOR: #008080">12</span> <span style="COLOR: #000000">                     </span><span style="COLOR: #0000ff">new</span></font> <font size="1"> <span style="COLOR: #000000"> AbstractLobCreatingPreparedStatementCallback(lobHandler) {<br /></span> <span style="COLOR: #008080">13</span> <span style="COLOR: #000000">                        </span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span></font> <font size="1"> <span style="COLOR: #000000"> setValues(PreparedStatement pstmt, LobCreator lobCreator)<br /></span> <span style="COLOR: #008080">14</span> <span style="COLOR: #000000">                                                           </span><span style="COLOR: #0000ff">throws</span></font> <font size="1"> <span style="COLOR: #000000"> SQLException, DataAccessException {<br /></span> <span style="COLOR: #008080">15</span> <span style="COLOR: #000000">                            lobCreator.setClobAsCharacterStream(pstmt, </span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">, reader, (</span><span style="COLOR: #0000ff">int</span></font> <font size="1"> <span style="COLOR: #000000">) txtFile.length());<br /></span> <span style="COLOR: #008080">16</span> <span style="COLOR: #000000">                            lobCreator.setBlobAsBinaryStream(pstmt, </span><span style="COLOR: #000000">2</span><span style="COLOR: #000000">, is, (</span><span style="COLOR: #0000ff">int</span></font> <font size="1"> <span style="COLOR: #000000">) binaryFile.length());<br /></span> <span style="COLOR: #008080">17</span> </font> <font size="1"> <span style="COLOR: #000000">                        }<br /></span> <span style="COLOR: #008080">18</span> </font> <font size="1"> <span style="COLOR: #000000">                     });<br /></span> <span style="COLOR: #008080">19</span> </font> <font size="1"> <span style="COLOR: #000000">       <br /></span> <span style="COLOR: #008080">20</span> </font> <font size="1"> <span style="COLOR: #000000">        reader.close();<br /></span> <span style="COLOR: #008080">21</span> </font> <font size="1"> <span style="COLOR: #000000">        is.close();<br /></span> <span style="COLOR: #008080">22</span> <span style="COLOR: #000000"></span></font> </div> <p> <font size="1">d代码Q?br /><br /></font> </p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <font size="1"> <span style="COLOR: #008080"> 1</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> Writer writer </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> FileWriter(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">c:\\workspace\\test_bak.txt</span><span style="COLOR: #000000">"</span></font> <font size="1"> <span style="COLOR: #000000">);<br /></span> <span style="COLOR: #008080"> 2</span> <span style="COLOR: #000000">        </span><span style="COLOR: #0000ff">final</span><span style="COLOR: #000000"> OutputStream os </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> FileOutputStream(</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> File(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">c:\\workspace\\wish_bak.jpg</span><span style="COLOR: #000000">"</span></font> <font size="1"> <span style="COLOR: #000000">));<br /></span> <span style="COLOR: #008080"> 3</span> </font> <font size="1"> <span style="COLOR: #000000">       <br /></span> <span style="COLOR: #008080"> 4</span> <span style="COLOR: #000000">        jdbcTemplate.query(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">SELECT txt,image FROM test WHERE id = ?</span><span style="COLOR: #000000">"</span></font> <font size="1"> <span style="COLOR: #000000">,<br /></span> <span style="COLOR: #008080"> 5</span> <span style="COLOR: #000000">                </span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Object[] {</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000"> Integer(</span><span style="COLOR: #000000">1</span></font> <font size="1"> <span style="COLOR: #000000">)},<br /></span> <span style="COLOR: #008080"> 6</span> <span style="COLOR: #000000">                </span><span style="COLOR: #0000ff">new</span></font> <font size="1"> <span style="COLOR: #000000"> AbstractLobStreamingResultSetExtractor() {<br /></span> <span style="COLOR: #008080"> 7</span> <span style="COLOR: #000000">                    </span><span style="COLOR: #0000ff">protected</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">void</span><span style="COLOR: #000000"> streamData(ResultSet rs) </span><span style="COLOR: #0000ff">throws</span></font> <font size="1"> <span style="COLOR: #000000"> SQLException, IOException, DataAccessException {<br /></span> <span style="COLOR: #008080"> 8</span> <span style="COLOR: #000000">                        FileCopyUtils.copy(lobHandler.getClobAsCharacterStream(rs, </span><span style="COLOR: #000000">1</span></font> <font size="1"> <span style="COLOR: #000000">), writer);<br /></span> <span style="COLOR: #008080"> 9</span> <span style="COLOR: #000000">                        FileCopyUtils.copy(lobHandler.getBlobAsBinaryStream(rs, </span><span style="COLOR: #000000">2</span></font> <font size="1"> <span style="COLOR: #000000">), os);<br /></span> <span style="COLOR: #008080">10</span> </font> <font size="1"> <span style="COLOR: #000000">                    }<br /></span> <span style="COLOR: #008080">11</span> </font> <font size="1"> <span style="COLOR: #000000">                 });<br /></span> <span style="COLOR: #008080">12</span> </font> <font size="1"> <span style="COLOR: #000000">        writer.close();<br /></span> <span style="COLOR: #008080">13</span> </font> <font size="1"> <span style="COLOR: #000000">        os.close();<br /></span> <span style="COLOR: #008080">14</span> </font> <span style="COLOR: #000000"> <br /> </span> <font size="1"> <span style="COLOR: #008080">15</span> <span style="COLOR: #000000"></span></font> </div> <font size="1">备注1QOracleLobHandler要求注入CommonsDbcpNativeJdbcExtractorQ否则报错:要求使用OracleConnectionQ不可以使用Dbcpq接池?br /></font> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <font size="1"> <span style="COLOR: #008080">1</span> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /> <span style="COLOR: #000000">    </span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">bean id</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">lobHandler</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000"> </span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">org.springframework.jdbc.support.lob.OracleLobHandler</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">></span> </font> <span style="COLOR: #000000"> <br /> </span> <font size="1"> <span style="COLOR: #008080">2</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">property name</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">nativeJdbcExtractor</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">></span> </font> <span style="COLOR: #000000"> <br /> </span> <font size="1"> <span style="COLOR: #008080">3</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />       </span> <span style="COLOR: #000000"><</span> <span style="COLOR: #000000">bean </span> <span style="COLOR: #0000ff">class</span> <span style="COLOR: #000000">=</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor</span> <span style="COLOR: #000000">"</span> <span style="COLOR: #000000">/></span> </font> <span style="COLOR: #000000"> <br /> </span> <font size="1"> <span style="COLOR: #008080">4</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span> <span style="COLOR: #000000"></</span> <span style="COLOR: #000000">property</span> <span style="COLOR: #000000">></span> </font> <span style="COLOR: #000000"> <br /> </span> <font size="1"> <span style="COLOR: #008080">5</span> <span style="COLOR: #000000"> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />   </span> <span style="COLOR: #000000"></</span> <span style="COLOR: #000000">bean</span> <span style="COLOR: #000000">></span> </font> </div> <font size="1">备注2QOracle驱动版本很多Q要求用正的驱动。当驱动版本错误?报错Q无法释放LobHandlerQ无法关闭WriterQ无法从套接字读取更多的信息。执行插入操作,但是Clobcd数据为空?/font> <img src ="http://www.tkk7.com/windforce/aggbug/79880.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/windforce/" target="_blank">风之?/a> 2006-11-08 16:20 <a href="http://www.tkk7.com/windforce/archive/2006/11/08/79880.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>cookie、userdata、sessionStorage[转蝲]http://www.tkk7.com/windforce/archive/2006/10/26/77465.html风之?/dc:creator>风之?/author>Thu, 26 Oct 2006 12:14:00 GMThttp://www.tkk7.com/windforce/archive/2006/10/26/77465.htmlhttp://www.tkk7.com/windforce/comments/77465.htmlhttp://www.tkk7.com/windforce/archive/2006/10/26/77465.html#Feedback2http://www.tkk7.com/windforce/comments/commentRss/77465.htmlhttp://www.tkk7.com/windforce/services/trackbacks/77465.html
userdataQ只有ie支持Q单个容?4kbQ每个域名最多可?0个共?40k数据。默认保存在C:\Documents and Settings\Administrator\UserData\目录下,保存格式为xml。关于userdata更多资料参?a target="_blank">http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/reference/behaviors/userdata.asp

sessionStorageQ只有firefox2支持的时数据保存,定w大小不祥?br />

以下是js片段Q拿来替代cookiesq是蛮爽_HOHO?br />
 1 if(window.ActiveXObject) {document.documentElement.addBehavior("#default#userdata");};
 2 
 3   var Cache Q {
 4     set : function(key, value) {
 5       if(window.ActiveXObject) {//for ie5.0+
 6         with(document.documentElement){
 7           try{
 8             load(key);
 9             setAttribute("js", value);
10             save(key);
11           }catch (ex){
12             setAttribute("js", value);
13             save(key);
14           };
15         };
16       }else if(window.sessionStorage) {//for firefox2.0+
17         sessionStorage.setItem(key, value);
18       };
19     },
20     get : function(key) {
21       if(window.ActiveXObject) {
22         with(document.documentElement){
23           try{
24             load(key);
25             return getAttribute("js");
26           }catch (ex){
27             return null;
28           };
29         };
30       }else if(window.sessionStorage) {
31         return sessionStorage.getItem(key);
32       }else{
33         return null;
34       };
35     },
36     remove : function(key) {
37       if(window.ActiveXObject) {
38         with(document.documentElement){
39           try{
40             load(key);
41             expires = new Date(315532799000).toUTCString();
42             save(key);
43           }catch (ex){};
44         };
45       }else if(window.sessionStorage) {
46         sessionStorage.removeItem(key);
47       };
48     }
49   }

感谢emu的说?a href="/emu/archive/2006/10/04/73385.html" target="_blank">http://www.tkk7.com/emu/archive/2006/10/04/73385.html


]]>
dRSS历程http://www.tkk7.com/windforce/archive/2006/10/20/76442.html风之?/dc:creator>风之?/author>Fri, 20 Oct 2006 12:09:00 GMThttp://www.tkk7.com/windforce/archive/2006/10/20/76442.htmlhttp://www.tkk7.com/windforce/comments/76442.htmlhttp://www.tkk7.com/windforce/archive/2006/10/20/76442.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/76442.htmlhttp://www.tkk7.com/windforce/services/trackbacks/76442.html
   无聊惛_个读取RSS的东东,思\比较清晰Q?br />      ⒈用ajaxҎurl抓取xml数据Q?br />      ⒉解析数据,提取有用的信息;
⒊将提取出来的数据以合理的方式显C?br /> 本来以ؓ比较单的Q谁知道在第一步就卡住了。首先,ajax存在跨域问题Q直接抓取没有权限。那只好后台用URLd?br />可是抓回来的xml文gQ只要有中文是q。用new(string.getByte(),"UTF-8")解码Q会出现中文部分q。抓取代码如下:
单ȝ问题原因Q读取xml文g的时候要使用相符合的~码方式。一般xml都是用UTF-8~码Q而系l的默认d应该是GBK
(体中?。上一点只是猜惻I因ؓ我用new(string.getByte(),"UTF-8")Q用的是默认GBKdQ可以解出部分中文?br />所以因该在dxml时候指定编码,下面代码注释1?br /> 解出的代码,如果直接传回ajax处理Q会得步到xml对象。细看下最后输出得xml文gQ发现最后多了一??"。这个问号因该是
用来表明xmll束的。但是dom对xml格式要求和严|所以直接给回肯定是的不到responseXML.documentElement对象的。去掉后
可以正常解析?br />
 1public class GetRss extends HttpServlet
 2{
 3    private static final Logger logger = Logger.getLogger(GetRss.class);
 4   
 5    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
 6    {
 7        String url = request.getParameter("RssUrl");
 8        logger.info(url);
 9        try
10        {
11            URL RssUrl = new URL(url);
12            InputStream stream = RssUrl.openStream();
13            BufferedReader in = new BufferedReader(new InputStreamReader(stream),"UTF-8");//1
14            boolean loop = true
15            StringBuffer sb = new StringBuffer(); 
16
17           
18            while (loop) 
19            if ( in.ready() ) 
20            int i=0
21            while (i!= -1
22                i = in.read();
23                sb.append((char)i);
24            }
 
25            loop = false
26            }
 
27            }

28            int len = sb.length();
29            String out = sb.substring(0, len-1);//2
30            response.setContentType("text/xml;charset=utf-8");
31            response.setHeader("Cache-Control""no-cache");
32            
33            PrintWriter pw=new PrintWriter(new OutputStreamWriter(response.getOutputStream(),"UTF-8"));
34            pw.write(out);
35            pw.close();
36        }

37        catch (MalformedURLException e)
38        {
39            
40            logger.error("GetRss.execute Error. " + e.getMessage());
41        }

42        catch (IOException e)
43        {
44            logger.error("GetRss.execute Error. " + e.getMessage());
45        }
     
46    }

47
48}



]]>
Cross Site AJAX [转蝲]http://www.tkk7.com/windforce/archive/2006/10/16/75439.html风之?/dc:creator>风之?/author>Mon, 16 Oct 2006 08:38:00 GMThttp://www.tkk7.com/windforce/archive/2006/10/16/75439.htmlhttp://www.tkk7.com/windforce/comments/75439.htmlhttp://www.tkk7.com/windforce/archive/2006/10/16/75439.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/75439.htmlhttp://www.tkk7.com/windforce/services/trackbacks/75439.html一般情形下Qؓ安全赯Q浏览器不允怽在客L通过XMLHttpRequest讉K别的?参考连?,2)Q即使是同一域的子域也不行,譬如www.joycode.com ?blog.joycode.com?你可以通过某些讄来访问子域,但因Ҏ不是很通行Q所有就不考虑了,但如果你感兴,参考连??

但很明显Q在不少情Ş下,讉K别的|站Q获取别的网站的信息/服务是非常有用的Q特别是在这个Web 2.0时代?

常用的跨站访问的Ҏ?U?参考连?Q?)Q?

  1. 在同一域的服务器端建立一个代理,览器向该代理网址发送请求,然后该代理向其他域的|址发请求,在获取回复后Q或作处理或按原样发回到览?
  2. 使用按需(On-Demand) Javascript 脚本。在面内动态生成新?lt;script>Q将其src属性指向别的网站的|址Q这个网址q回的内容必L合法的Javascript脚本Q常用的是JSON消息?
  3. 使用IFRAME。在面内嵌或动态生成指向别的网站的IFRAMEQ然后这2个网间可以通过改变Ҏ的anchor hash fragment来传输消息。改变一个网늚anchor hash fragmentq不会ɋ览器重新装载网,所以一个网늚状态得以保持,而网|w则可以通过一个计时器(timer)来察觉自己anchor hash的变化,从而相应改变自q状?参?a >q个帖子中提及的Nikhil Kothari的历史控?/a>中的Ҏ)?Julien Couvreur在他的?a target="_blank">Cross-document messaging hack》里描述了一个更复杂的应用情形,
    "....
    For example, if you have page A containing an iframe B in a different domain,then B can create a new iframe and load it with a url in the same domain as A. The url that is loaded doesn't generate a request to the server if it is properly cached and only the fragment identifier is used to pass changing information. Page A can now get the DOM handle on the new iframe and successfully retrieve the information transmitted in the url by B...." (大体q样Q网A包含了一个IFRAME BQB的网|自一个不同的域。然后B可以生成一个IFRAME CQ把它指向与|页A同域的某个地址Q因为是A与C同域Q网A可以讉KC里的信息Q反之亦然?

ASP.NET AJAX扩展(即Atlas)提供了一个桥(bridge)机制让你在服务器端配|来讉K别的|站Qƈ同时支持POX和SOAPq?U协议。想了解其中l节Q请参考Atlas文里的《Building Mash-ups with "Atlas"?/a>。当然你完全可以自己建立一个web serviceQ通过它来讉K其他|站q返回信息?

据说QAtlas中的 IFrameExecutor 可以实现跨域的调用,我按照MSDN博客Federal Developer Weblog的这帖?a target="_blank">《Calling web services hosted outside of your application with “Atlas”?/a>上的步骤试了一下,但在Windows 2003 Server SP1上得到却是“Access is denied”的错误信息。然后我下蝲?a >该文中的目Q试验的l果仍旧是“Access is denied”。也讔R要改动一些浏览器中的什么设|才能成功,但这不是我的目的Q我需要一个在普通设|下都能成功的例子?

按需(On-Demand) Javascript脚本的实现是很简单的Q譬如我有这样一个网,(x试的话,需要改动其中的|址)

其中的www.anotherdomain.com/TestCrossJS.aspx是这LQ?

<script language="C#" runat="server">
void Page_Load(object sender, EventArgs e)
{
  string f = Request.QueryString["f"];
  Response.Clear();
  Response.ContentType = "application/x-javascript";
  Response.Write(String.Format(@"
                   {0}('{1}');", 
                   f,
                   DateTime.Now));
  Response.End();
}
</script>

点击“Click Me”按钮,生成一个新的script tagQ下载对应的 Javascript 脚本Q结束时回调其中的setDivContent()Q从而更新网上一个div的内宏V?

IFRAME的方法好像很行Q除?a target="_blank">dojo工具包支?/a>外,据微软的Dare Obasanjo?参考连?)Q?a target="_blank">Windows Live Contacts Gadget使用了这个方法来获取Hotmail的address book。最q,Plaxo公司的开发h?Joseph Smarr在七月的OSCON 2006会议上作了一个题?a target="_blank">《Cross-site Ajax: Challenges and Techniques for Building Rich Web 2.0 Mashups?/a>的讲座[来源Q?a target="_blank">Kevin Yank--OSCON 2006: Cross-site Ajax]Q?a target="_blank">他们这个方法做成了一个^?/a>Q允许合作伙伴间合作Q他们开发的Ҏ叫“The JavaScript Wormhole(虫洞)”,据说准备其推广Z个标准。他讲的PPT可以?a target="_blank">q里下蝲Q里面对q个Ҏ做了说明Q非常值得看一下?

现在IFRAME的方法简单示范如?

1. http://domain1/TestCross.html:

<html>
<head>
<script language="javascript" type="text/javascript">
var url = "http://domain2/TestCross.html"
var oldHash = null;
var timer = null;

function getHash()
{
var hash = window.location.hash;
if ((hash.length >= 1) && (hash.charAt(0) == '#'))
{
hash = hash.substring(1);
}

return hash;
}
function sendRequest()
{
var d = document;
var t = d.getElementById('request');
var f = d.getElementById('alienFrame');
f.src = url + "#" + t.value + "<br/>" + new Date();
}

function setDivHtml(v)
{
var d = document;
var dv = d.getElementById('response');
dv.innerHTML = v;
}

function idle()
{
var newHash = getHash();

if (newHash != oldHash)
{
setDivHtml(newHash);
oldHash = newHash;
}

timer = window.setTimeout(idle, 100);
}

function window.onload()
{
timer = window.setTimeout(idle, 100);
}
</script>
</head>
<body>

hQ?lt;input type="text" id="request"> <input type="button" value="发? onclick="sendRequest()" /><br/>
回复Q?lt;div id="response"></div>

<iframe id="alienFrame" src="http://domain2/TestCross.html"></iframe>

</body>
</html>

2. http://domain2/TestCross.html:

<html>
<head>
<script language="javascript" type="text/javascript">
var url = "http://domain1/TestCross.html"
var oldHash = null;
var timer = null;

function getHash()
{
var hash = window.location.hash;
if ((hash.length >= 1) && (hash.charAt(0) == '#'))
{
hash = hash.substring(1);
}

return hash;
}
function sendRequest()
{
var d = document;
var t = d.getElementById('request');
var f = parent;
//alert(f.document); //试着Lq个注释Q你会得到“Access is denied?br />f.location.href = url + "#" + t.value + "<br/>" + new Date();
}

function setDivHtml(v)
{
var d = document;
var dv = d.getElementById('response');
dv.innerHTML = v;
}

function idle()
{
var newHash = getHash();

if (newHash != oldHash)
{
setDivHtml(newHash);
oldHash = newHash;
}

timer = window.setTimeout(idle, 100);
}

function window.onload()
{
timer = window.setTimeout(idle, 100);
}
</script>
</head>
<body>

hQ?lt;input type="text" id="request"> <input type="button" value="发? onclick="sendRequest()" /><br/>
回复Q?lt;div id="response"></div>

</body>
</html>

两个|页基本相同Q第一个网内嵌一个IFRAMEQ在点击“发送”按钮后Q会文本框里的内容通过hash fragment传给IFRAME。点击IFRAME里的“发送”按钮后Q它会将文本框里的内定w过hash fragment传给父窗口。因为是只改动了hash fragmentQ浏览器不会重新load|页内容Q这里用了一个计时器来检URL变化Q如果变化了Q就更新其中一个div的内??

q个Ҏ是不是个安全漏洞Q考虑到微软的Windows Live都在使用q个ҎQ估计不是,。这个方法是不是很安全?考虑到这个方法只有在2个网站协作的情Ş才能成功Q安全问题好像不是很大,除非其中涉及的网站本w有XSS的问题?/p>

【参考连接?

1. Security Considerations: Dynamic HTML
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/sec_dhtml.asp

2. About Cross-Frame Scripting and Security
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp

3. Cross-Domain Proxy
http://ajaxpatterns.org/Cross-Domain_Proxy

4. Cross Domain XMLHttpRequest using an IFrame Proxy
http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book75

5. Back Button Support for Atlas UpdatePanels
http://www.nikhilk.net/BackButtonSupport.aspx

6. Cross-document messaging hack
http://blog.monstuff.com/archives/000304.html

7. Building Mash-ups with "Atlas"
http://atlas.asp.net/docs/Walkthroughs/DevScenarios/bridge.aspx

8. Calling web services hosted outside of your application with “Atlas?br />http://blogs.msdn.com/federaldev/archive/2006/07/31/684229.aspx

http://www.federaldeveloper.com/Shared%20Documents/Presentations%20by%20Marc%20Schweigert/CallAtlasWebServiceInDifferentProject.zip

9. AJAX Tip: Passing Messages Between iframes
http://www.25hoursaday.com/weblog/PermaLink.aspx?guid=3b03cf9d-b589-4838-806e-64efcc0a1a15

10. OSCON Cross-site Ajax Slides
http://blog.plaxo.com/archives/2006/07/oscon_crosssite.html

http://www.plaxo.com/css/api/Joseph-Smarr-Plaxo-OSCON-2006.ppt

11. OSCON 2006: Cross-site Ajax
http://www.sitepoint.com/blogs/2006/07/28/oscon-2006-cross-site-ajax/



]]>
在JDK1.4中用JAXP1.3[转蝲]http://www.tkk7.com/windforce/archive/2006/09/28/72675.html风之?/dc:creator>风之?/author>Thu, 28 Sep 2006 13:03:00 GMThttp://www.tkk7.com/windforce/archive/2006/09/28/72675.htmlhttp://www.tkk7.com/windforce/comments/72675.htmlhttp://www.tkk7.com/windforce/archive/2006/09/28/72675.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/72675.htmlhttp://www.tkk7.com/windforce/services/trackbacks/72675.html在JDK1.4中用JAXP1.3
׃JDK1.5以上已经自带jaxp了,而jdk1.4以下版本需要自己添加jaxp库文件?/div>
 
1。下?/div>
因ؓjwsdp-1.5中带的jaxp?.26版本Q因此需要单独重C载jaxp
 
参考:
 
2.安装:
JAXP_RI_20041025.class所在的目录?q入命o行,
q行Qjava -cp . JAXP_RI_20041025
然后屏幕上列出所有解压出来的文g名字?/div>
此时Q在当前目录下会有一个叫jaxp-1_3的目录,里面有jaxp的jar文g和api文?/div>
 
3.jaxp需要用到的jar?都在jaxp-1_3目录?Q?/div>
dom.jar,jaxp-api.jar,sax.jar,xalan.jar,xercesImpl.jar
 
4.接下来就可以Ҏ自己需要来使用jaxp1.3?/div>
 
5.׃sun默认使用的解析器是经q其包装后的(ZXerces version 2.6.0 ?XSLTC version 2.5.2),比如Q?/div>
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl(可查看javax.xml.parsers.SAXParserFactory 的源代码),
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl(可查看javax.xml.transform.TransformerFactory 的源代码).
因此在需要用其它解析器的时候,需要通过讄pȝ属性值的方式Q?/div>
或者在$java.home/lib/jaxp.propertiesq行配置($java.home为System.getProperty("java.home")所得到的\径,具体可以查看javax.xml.parsers.FactoryFinder源代码中?static Object find(String factoryId, String fallbackClassName) Ҏ)来选择具体的解析器实现?/div>
jaxp.properties中支持以下属?
 
CZ文g如下(实际是jaxp的默认?Q?/div>
javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
javax.xml.datatype.DatatypeFactory=com.sun.org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl
 
假如需要用apache的解析器Q那么如下操??/div>
(均ؓ当前最新版?
b.解压获得相应的jar文g,攑օclasspath中?/div>
3.配置jaxp.properties为:
javax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl
#也可以?/div>
#javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
javax.xml.datatype.DatatypeFactory=org.apache.xerces.internal.jaxp.datatype.DatatypeFactoryImpl
 
 
 
 
 
6.需要关于jaxp的调试信息,讄pȝ属性jaxp.debug?卛_
   System.setProperty("jaxp.debug","1");
或者运行时的命令ؓQ?java -Djaxp.debug=1 com.lizongbo.TestJAXP
 
 
 
几篇非常好的资料Q?/div>
 
JAXP 专述 Sun ?Java API for XML 语法分析
JAXP 再述 Sun ?Java API for XML ParsingQ?.1 ?/span>
 
JAXP 1.3 的新Ҏ,W?1 部分
技术综qͼ考察解析 API 的变化和新的验证 API
JAXP 1.3 的新Ҏ,W?2 部分
XPath 功能、支持名U空间的工具和其他改q?/span>
JAXP 全面介绍Q第 1 部分
XML 处理工具包解析和验证变得更Ҏ
 
Factory模式和Abstract Factory模式
 
Java中关于XML的API一?/strong>
 
 


Trackback: http://tb.donews.net/TrackBack.aspx?PostId=418679



]]>sendRedirect VS forwordhttp://www.tkk7.com/windforce/archive/2006/09/17/70139.html风之?/dc:creator>风之?/author>Sun, 17 Sep 2006 07:06:00 GMThttp://www.tkk7.com/windforce/archive/2006/09/17/70139.htmlhttp://www.tkk7.com/windforce/comments/70139.htmlhttp://www.tkk7.com/windforce/archive/2006/09/17/70139.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/70139.htmlhttp://www.tkk7.com/windforce/services/trackbacks/70139.html2.forwardӞ操作完全在服务器端进行,由服务器直接执行新的URL。客L甚至毫不知情?br />3.׃sendRedirect是由客户端自动请求的Q所以客LW一ơ的h数据׃能得C存;相反Q在forward的情况,客户W一ơ的h数据得到了保存,卛_新的URL里能够得到原先的h数据?br />4.在相同的情况下,׃sendRedirect相当于客L两次hQ所以forward的效率较sendRedirect要好?br />5.sendRedirect()一定要在response对象,别的语言的头域输出没有输出正文时才能使用,因ؓ按W3C标准,头域在在输出后是不许改变状态的,只有JSP和SERVLET可以改变?而一但有正文输出,׃产生BUFFERd.

比如\r
<%
out.println("sss");
response.sendRedirect("url");
%>
q是错误?或者在此之前有HTML
<HTMLMWPW>
<%
response.sendRedirect("url");
%>
q了是错误的,因ؓHTML内容也是out对象输出?response对象已经被占?q时应该用forward()才对.


]]>
常用的DOCUMENT.EXECCOMMAND http://www.tkk7.com/windforce/archive/2006/09/14/69582.html风之?/dc:creator>风之?/author>Thu, 14 Sep 2006 03:05:00 GMThttp://www.tkk7.com/windforce/archive/2006/09/14/69582.htmlhttp://www.tkk7.com/windforce/comments/69582.htmlhttp://www.tkk7.com/windforce/archive/2006/09/14/69582.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/69582.htmlhttp://www.tkk7.com/windforce/services/trackbacks/69582.html<input type=button value=拯 onclick=document.execCommand('Copy')>
<input type=button value=_脓 onclick=document.execCommand('Paste')>
<input type=button value=撤消 onclick=document.execCommand('Undo')>
<input type=button value=重做 onclick=document.execCommand('Redo') id=button2 name=button2>
<input>
<input type=button value=删除 onclick=document.execCommand('Delete')>
<input type=button value=黑体 onclick=document.execCommand('Bold')>
<input type=button value=斜体 onclick=document.execCommand('Italic')>
<input type=button value=下划U?onclick=document.execCommand('Underline')>
<input type=button value=停止 onclick=document.execCommand('stop')>
<input type=button value=保存 onclick=document.execCommand('SaveAs')>
<input type=button value=另存?onclick=document.execCommand('Saveas',false,'c:\\test.htm')>
<input type=button value=字体 onclick=document.execCommand('FontName',false,fn)>
<input type=button value=字体大小 onclick=document.execCommand('FontSize',false,fs)>
<input type=button value=h onclick=document.execCommand('refresh',false,0)>
只可在ie使用......

]]>
40U网常用小技?javascript) http://www.tkk7.com/windforce/archive/2006/09/13/69420.html风之?/dc:creator>风之?/author>Wed, 13 Sep 2006 09:18:00 GMThttp://www.tkk7.com/windforce/archive/2006/09/13/69420.htmlhttp://www.tkk7.com/windforce/comments/69420.htmlhttp://www.tkk7.com/windforce/archive/2006/09/13/69420.html#Feedback0http://www.tkk7.com/windforce/comments/commentRss/69420.htmlhttp://www.tkk7.com/windforce/services/trackbacks/69420.html 1. oncontextmenu=window.event.returnValue=false 彻底屏蔽鼠标右?br /><table border oncontextmenu=return(false)><td>no</table> 可用于Table

2. <body onselectstart=return false> 取消选取、防止复?br />
3. onpaste=return false 不准_脓

4. oncopy=return false; oncut=return false; 防止复制

5. <link rel=Shortcut Icon href=favicon.ico> IE地址栏前换成自己的图?br />
6. <link rel=Bookmark href=favicon.ico> 可以在收藏夹中显C出你的图标

7. <input style=ime-mode:disabled> 关闭输入?br />
8. 永远都会带着框架
<script language=javascript><!--
if (window == top)top.location.href = frames.htm; //frames.htm为框架网?br />// --></script>

9. 防止被hframe
<SCRIPT LANGUAGE=javascript><!-- 
if (top.location != self.location)top.location=self.location;
// --></SCRIPT>

10. |页不能被另存?br /><noscript><iframe src=*.html></iframe></noscript> 

11. <input type=button value=查看|页源代码?br />onclick=window.location = view-source:+ http://www.pconline.com.cn>

12.删除时确?br /><a href=javascript:if(confirm(实要删除吗?))location=boos.asp?&areyou=删除&page=1>删除</a> 

13. 取得控g的绝对位|?br />//javascript
<script language=javascript>
function getIE(e){
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop;
l+=e.offsetLeft;
}
alert(top=+t+/nleft=+l);
}
</script>

//VBScript
<script language=VBScript><!--
function getIE()
dim t,l,a,b
set a=document.all.img1
t=document.all.img1.offsetTop
l=document.all.img1.offsetLeft
while a.tagName<>BODY
set a = a.offsetParent
t=t+a.offsetTop
l=l+a.offsetLeft
wend
msgbox top=&t&chr(13)&left=&l,64,得到控g的位|?br />end function
--></script>

14. 光标是停在文本框文字的最?br /><script language=javascript>
function cc()
{
var e = event.srcElement;
var r =e.createTextRange();
r.moveStart(character,e.value.length);
r.collapse(true);
r.select();
}
</script>
<input type=text name=text1 value=123 onfocus=cc()>

15. 判断上一늚来源
javascript:
document.referrer

16. 最化、最大化、关闭窗?br /><object id=hh1 classid=clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11> 
<param name=Command value=Minimize></object>
<object id=hh2 classid=clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11> 
<param name=Command value=Maximize></object>
<OBJECT id=hh3 classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11>
<PARAM NAME=Command VALUE=Close></OBJECT>
<input type=button value=最化 onclick=hh1.Click()>
<input type=button value=最大化 onclick=hh2.Click()>
<input type=button value=关闭 onclick=hh3.Click()>
本例适用于IE

17.屏蔽功能键Shift,Alt,Ctrl
<script>
function look(){ 
if(event.shiftKey) 
alert(止按Shift?); //可以换成ALT CTRL

document.onkeydown=look; 
</script>

18. |页不会被缓?br /><META HTTP-EQUIV=pragma CONTENT=no-cache>
<META HTTP-EQUIV=Cache-Control CONTENT=no-cache, must-revalidate>
<META HTTP-EQUIV=expires CONTENT=Wed, 26 Feb 1997 08:21:57 GMT>
或?lt;META HTTP-EQUIV=expires CONTENT=0>

19.怎样让表单没有凹凸感Q?br /><input type=text style=border:1 solid #000000> 
?br /><input type=text style=border-left:none; border-right:none; border-top:none; border-bottom: 

1 solid #000000></textarea>

20.<div><span>&<layer>的区别? 
<div>(division)用来定义大段的页面元素,会生{行?br /><span>用来定义同一行内的元素,?lt;div>的唯一区别是不产生转行 
<layer>是ns的标讎ͼie不支持,相当?lt;div>

21.让弹出窗口L在最上面:
<body onblur=this.focus();>

22.不要滚动? 
让竖条没? 
<body style=overflow:scroll;overflow-y:hidden> 
</body> 
让横条没? 
<body style=overflow:scroll;overflow-x:hidden> 
</body> 
两个都去掉?更简单了 
<body scroll=no> 
</body> 

23.怎样L囄链接点击后,囄周围的虚U?
<a href=# onFocus=this.blur()><img src=logo.jpg border=0></a>

24.电子邮g处理提交表单
<form name=form1 method=post action=mailto:****@***.com enctype=text/plain> 
<input type=submit>
</form>

25.在打开的子H口h父窗口的代码里如何写Q?br />window.opener.location.reload()

26.如何讑֮打开面的大?br /><body onload=top.resizeTo(300,200);>
打开面的位|?lt;body onload=top.moveBy(300,200);>

27.在页面中如何加入不是满铺的背景图?拉动面时背景图不动 
<STYLE> 
body 
{background-image:url(logo.gif); background-repeat:no-repeat; 
background-position:center;background-attachment: fixed} 
</STYLE> 

28. 查一D字W串是否全由数字l成
<script language=javascript><!--
function checkNum(str){return str.match(//D/)==null}
alert(checkNum(1232142141))
alert(checkNum(123214214a1))
// --></script>

29. 获得一个窗口的大小
document.body.clientWidth; document.body.clientHeight

30. 怎么判断是否是字W?br />if (/[^/x00-/xff]/g.test(s)) alert(含有汉字);
else alert(全是字符);

31.TEXTAREA自适应文字行数的多?br /><textarea rows=1 name=s1 cols=27 onpropertychange=this.style.posHeight=this.scrollHeight>
</textarea>
32. 日期减去天数{于W二个日?br /><script language=javascript>
function cc(dd,dadd)
{
//可以加上错误处理
var a = new Date(dd)
a = a.valueOf()
a = a - dadd * 24 * 60 * 60 * 1000
a = new Date(a)
alert(a.getFullYear() + qb? (a.getMonth() + 1) + 月? a.getDate() + ?
}
cc(12/23/2002,2)
</script>

33. 选择了哪一个Radio
<HTML><script language=vbscript>
function checkme()
for each ob in radio1
if ob.checked then window.alert ob.value
next
end function
</script><BODY>
<INPUT name=radio1 type=radio value=style checked>Style
<INPUT name=radio1 type=radio value=barcode>Barcode
<INPUT type=button value=check onclick=checkme()>
</BODY></HTML>

34.脚本怸出错
<SCRIPT LANGUAGE=javascript
<!-- Hide 
function killErrors() { 
return true; 

window.onerror = killErrors; 
// --> 
</SCRIPT>

35.ENTER键可以让光标Ud下一个输入框
<input onkeydown=if(event.keyCode==13)event.keyCode=9>

36. 某个网站的链接速度Q?br />把如下代码加?lt;body>区域?
<script language=javascript>
tim=1
setInterval(tim++,100)
b=1
var autourl=new Array()
autourl[1]=www.njcatv.net
autourl[2]=javacool.3322.net
autourl[3]=www.sina.com.cn
autourl[4]=www.nuaa.edu.cn
autourl[5]=www.cctv.com
function butt(){
document.write(<form name=autof>)
for(var i=1;i<autourl.length;i++)
document.write(<input type=text name=txt+i+ size=10 value=试中…?gt; =?lt;input type=text 
name=url+i+ size=40> =?lt;input type=button value=GO 

onclick=window.open(this.form.url+i+.value)><br>)
document.write(<input type=submit value=h></form>)
}
butt()
function auto(url){
document.forms[0][url+b].value=url
if(tim>200)
{document.forms[0][txt+b].value=链接时}
else
{document.forms[0][txt+b].value=旉+tim/10+U}
b++
}
function run(){for(var i=1;i<autourl.length;i++)document.write(<img src=http://+autourl+/+Math.random()+ width=1 height=1 

onerror=auto(http://+autourl+)>)}
run()</script>

37. 各种样式的光?br />auto Q标准光?br />default Q标准箭?br />hand Q手形光?br />wait Q等待光?br />text QI形光?br />vertical-text Q水qI形光?br />no-drop Q不可拖动光?br />not-allowed Q无效光?br />help Q?帮助光标
all-scroll Q三角方向标
move Q移动标
crosshair Q十字标
e-resize
n-resize
nw-resize
w-resize
s-resize
se-resize
sw-resize

38.面q入和退出的Ҏ
q入面<meta http-equiv=Page-Enter content=revealTrans(duration=x, transition=y)>
推出面<meta http-equiv=Page-Exit content=revealTrans(duration=x, transition=y)> 
q个是页面被载入和调出时的一些特效。duration表示Ҏ的持l时_以秒为单位。transition表示使用哪种ҎQ取gؓ1-23:
  0 矩Ş~小 
  1 矩Ş扩大 
  2 圆Ş~小
  3 圆Ş扩大 
  4 下到上刷斊W?br />  5 上到下刷?br />  6 左到叛_斊W?br />  7 叛_左刷斊W?br />  8 竖百叶窗
  9 横百叶窗 
  10 错位横百叶窗 
  11 错位竖百叶窗
  12 Ҏ散?br />  13 左右C间刷斊W?br />  14 中间到左叛_?br />  15 中间C?br />  16 上下C闾b?br />  17 右下到左?br />  18 右上到左下?br />  19 左上到右下?br />  20 左下到右?br />  21 横条 
  22 竖条 
  23 以上22U随机选择一U?br />
39.在规定时间内跌{
<META http-equiv=V=REFRESH content=5;URL=http://www.51js.com> 

40.|页是否被检?br /><meta name=ROBOTS content=属性?gt;
  其中属性值有以下一?
  属性gؓall: 文g被索,且页上链接可被查询;
  属性gؓnone: 文g不被索,而且不查询页上的链接Q?br />  属性gؓindex: 文g被索;
  属性gؓfollow: 查询上的链接;
  属性gؓnoindex: 文g不检索,但可被查询链接;
  属性gؓnofollow: 文g不被索,但可查询上的链接?br />



]]>
struts下解决ؕ码一?/title><link>http://www.tkk7.com/windforce/archive/2006/09/13/69323.html</link><dc:creator>风之?/dc:creator><author>风之?/author><pubDate>Wed, 13 Sep 2006 02:51:00 GMT</pubDate><guid>http://www.tkk7.com/windforce/archive/2006/09/13/69323.html</guid><wfw:comment>http://www.tkk7.com/windforce/comments/69323.html</wfw:comment><comments>http://www.tkk7.com/windforce/archive/2006/09/13/69323.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/windforce/comments/commentRss/69323.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/windforce/services/trackbacks/69323.html</trackback:ping><description><![CDATA[新徏一个SetCharacterEncodingServlet的类Q承ActionServletQ?重写process()Ҏ。如下示Q?br />          protected void process(HttpServletRequest request,<br />            HttpServletResponse response) throws java.io.IOException,<br />            javax.servlet.ServletException<br />          {<br />                request.setCharacterEncoding("UTF-8");<br />              super.process(request, response);<br />            }<br />在web.xml中部|ActionServlet?br /><servlet><br />    <servlet-name>action</servlet-name><br />    <servlet-class>com..util.UTF8ActionServlet</servlet-class><br />    <init-param><br />      <param-name>config</param-name><br />      <param-value>/WEB-INF/struts-config.xml</param-value><br />    </init-param><br />     <init-param><br />      <param-name>debug</param-name><br />      <param-value>3</param-value><br />    </init-param><br />    <init-param><br />      <param-name>detail</param-name><br />      <param-value>3</param-value><br />    </init-param><br />    <load-on-startup>0</load-on-startup><br />  </servlet><br /><br />   <servlet-mapping><br />    <servlet-name>action</servlet-name><br />    <url-pattern>*.do</url-pattern><br />   </servlet-mapping><img src ="http://www.tkk7.com/windforce/aggbug/69323.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/windforce/" target="_blank">风之?/a> 2006-09-13 10:51 <a href="http://www.tkk7.com/windforce/archive/2006/09/13/69323.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于commons-fileuploadlg中文q的问?/title><link>http://www.tkk7.com/windforce/archive/2006/09/13/69313.html</link><dc:creator>风之?/dc:creator><author>风之?/author><pubDate>Wed, 13 Sep 2006 02:07:00 GMT</pubDate><guid>http://www.tkk7.com/windforce/archive/2006/09/13/69313.html</guid><wfw:comment>http://www.tkk7.com/windforce/comments/69313.html</wfw:comment><comments>http://www.tkk7.com/windforce/archive/2006/09/13/69313.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/windforce/comments/commentRss/69313.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/windforce/services/trackbacks/69313.html</trackback:ping><description><![CDATA[ <p>    在用commons-fileuploadlgq程中,刚开始出Cؕ码ƈ没有在意。加了一个过滤器Q编码全部UTF-8,OK!q行调试,出来q是qQ我倒!Ҏgb2312Q结果竟然好了,文g名、输出都是中?br />    后来l过再研I过后,发现commons-fileupload的DiskFileUpload有一个setHeadEncoding的方法,在获取文件名的时候是要用到的。如果没有设|,׃用默认的gb2312~码?br />   setHeadEncoding("UTF-8")Q调试一切ok?/p> <img src ="http://www.tkk7.com/windforce/aggbug/69313.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/windforce/" target="_blank">风之?/a> 2006-09-13 10:07 <a href="http://www.tkk7.com/windforce/archive/2006/09/13/69313.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>лǵվܻԴȤ</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> վ֩ģ壺 <a href="http://jomashopcn.com" target="_blank">㻨ѸƵ</a>| <a href="http://alankell.com" target="_blank">9420ѸƵ</a>| <a href="http://carsmp.com" target="_blank">avרavһ </a>| <a href="http://www96pg.com" target="_blank">޾Ʒ</a>| <a href="http://by23336.com" target="_blank">޹ҹ߲</a>| <a href="http://hzsprfm.com" target="_blank">99Ʒѹۿ</a>| <a href="http://kan63.com" target="_blank">ɫʹۺһ</a>| <a href="http://caocl1024liu.com" target="_blank">޹һվƷѿ</a>| <a href="http://8888kkk.com" target="_blank">ëƬaëƬѲ</a>| <a href="http://0330196.com" target="_blank">Ʒһѹۿ</a>| <a href="http://jomashopcn.com" target="_blank">޾ƷƵ</a>| <a href="http://www77753.com" target="_blank">һƬ</a>| <a href="http://by33321.com" target="_blank">1000ƬƵѿ</a>| <a href="http://zdmaid.com" target="_blank">һëƬaѲɫ</a>| <a href="http://8mav1000.com" target="_blank">˳ӰԺ߸</a>| <a href="http://shiliuvip.com" target="_blank">ĻƷ</a>| <a href="http://www-554949.com" target="_blank">123Ʒ</a>| <a href="http://spvec.com" target="_blank">һһƬƵ</a>| <a href="http://zjjtejia.com" target="_blank">avպavav</a>| <a href="http://www6yg6yg.com" target="_blank">AVƬ߹ۿ</a>| <a href="http://ninidian.com" target="_blank">˻ҳվѹۿȫ</a>| <a href="http://ygloka.com" target="_blank">պѵӰַ</a>| <a href="http://928348.com" target="_blank">ձһѸ </a>| <a href="http://93qsgy.com" target="_blank">պٸѲ</a>| <a href="http://0147222.com" target="_blank">ƷAVһ</a>| <a href="http://633223.com" target="_blank">רһvav</a>| <a href="http://doubaye.com" target="_blank">椸Ƶ߹ۿ</a>| <a href="http://cqshangshu.com" target="_blank">ŷa߹ۿ</a>| <a href="http://tltcn.com" target="_blank">һëƬ߹ۿվ</a>| <a href="http://xxxxxxxxcccc.com" target="_blank">л</a>| <a href="http://maiertejx.com" target="_blank">뾫Ʒ</a>| <a href="http://k8h9.com" target="_blank">ִֻˬƬ</a>| <a href="http://haoda8.com" target="_blank">ŷƵ</a>| <a href="http://watchmini.com" target="_blank">һƬѿ</a>| <a href="http://xieehuomh.com" target="_blank">һëƬƵվ</a>| <a href="http://zj1069.com" target="_blank">þav޾Ʒɫҹ </a>| <a href="http://biarn.com" target="_blank">AVƬ</a>| <a href="http://zbvip888.com" target="_blank">˳ɴƬ߹ۿ</a>| <a href="http://jipiao020.com" target="_blank">Ļav</a>| <a href="http://www907ii.com" target="_blank">޾Ʒmv߹ۿ</a>| <a href="http://wusongtv.com" target="_blank">avɫӰ</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>