??xml version="1.0" encoding="utf-8" standalone="yes"?>老司机2019福利精品视频导航,久热精品在线,99riav视频在线观看http://www.aygfsteel.com/jdskyy/archive/2009/08/23/292264.html蒋d蒋dSun, 23 Aug 2009 02:41:00 GMThttp://www.aygfsteel.com/jdskyy/archive/2009/08/23/292264.htmlhttp://www.aygfsteel.com/jdskyy/comments/292264.htmlhttp://www.aygfsteel.com/jdskyy/archive/2009/08/23/292264.html#Feedback1http://www.aygfsteel.com/jdskyy/comments/commentRss/292264.htmlhttp://www.aygfsteel.com/jdskyy/services/trackbacks/292264.htmlweblogic10.3 q个应用服务器是oracle 收购Bean 公司后新出的版本Q今天试用下Q发C错.JQDQ的配置q程一一记录Q?br /> 1: 启动weblogic 10.3 采用默认密码q入
2:在JDBC-DATASOURCE 中假Z个应用数据源Q?br /> 3:?Configuration-->Connection Pool-->Advanced 中的  一定要沟上Q不然会(x)试通不q?br /> 4:填写试的表?   {信?br />
Q:(x)~写试的JQI文g

<!doctype html public "-//w3c//dtd html 4.0 transitional//en"   "http://www.w3.org/TR/REC-html40/strict.dtd">
<%@ page import="java.sql.*"%>
<%@ page import="javax.sql.*"%>
<%@ page import="javax.naming.*"%>
<%@ page session="false"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Test JNDI</title>
</head>
<body>
    
<%
    out.print(
"  Test Jndi Begin !!    ");
    DataSource ds 
= null;
    
try {
        InitialContext ctx 
= new InitialContext();
        ds 
= (DataSource) ctx.lookup("jdbc/mysql");
        Connection conn 
= ds.getConnection();
        Statement stmt 
= conn.createStatement();
        String strSql 
= " select * from tb_adminuser";
        ResultSet rs 
= stmt.executeQuery(strSql);
        
while (rs.next()) {
            out.println(rs.getString(
4));
        }

        out.print(
"Test is over");
    }
catch (Exception ex) {
        out.print(
"ERROR:" + ex.getMessage());
        ex.printStackTrace();
    }

%>
</body>

</html>

6:~写 JUNIT
package com.XXXXXX.framework.datasource;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Hashtable;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;

import junit.framework.TestCase;

public class TestJndi extends  TestCase{

    
    
public void testJndi() throws Exception{
        Hashtable ht 
= new Hashtable();          
        ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
        ht.put(Context.PROVIDER_URL, 
"t3://localhost:7001");
        Context initial 
= new InitialContext(ht);
        DataSource ds 
= (DataSource) initial.lookup("jdbc/mysql");
        Connection connect 
= ds.getConnection();

        Statement stmt 
= connect.createStatement();   
        String strSql 
= " select * from tb_adminuser";   
       
        ResultSet rs 
= stmt.executeQuery(strSql);   
        
while(rs.next()){   
            System.out.println(rs.getString(
2));
          }
  

    }



}

其中在编写JUNIT 的时候,有一个插Ԍ我在|上看到别h的代码是用t3://localhost:7007

我也照COPYQ结果出现错误如?
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7007: Destination unreachable; nested exception is: 
    java.net.ConnectException: Connection refused: connect; No available router to destination]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:
40)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:
783)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:
367)
    at weblogic.jndi.Environment.getContext(Environment.java:
315)
    at weblogic.jndi.Environment.getContext(Environment.java:
285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:
117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:
667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:
288)
    at javax.naming.InitialContext.init(InitialContext.java:
223)
    at javax.naming.InitialContext.
<init>(InitialContext.java:197)
    at com.etong.framework.datasource.TestJndi.testJndi(TestJndi.java:
21)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
    at java.lang.reflect.Method.invoke(Method.java:
597)
    at junit.framework.TestCase.runTest(TestCase.java:
168)
    at junit.framework.TestCase.runBare(TestCase.java:
134)
    at junit.framework.TestResult$
1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:
128)
    at junit.framework.TestResult.run(TestResult.java:
113)
    at junit.framework.TestCase.run(TestCase.java:
124)
    at junit.framework.TestSuite.runTest(TestSuite.java:
232)
    at junit.framework.TestSuite.run(TestSuite.java:
227)
    at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:
76)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
38)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
460)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
673)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
386)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
196)
Caused by: java.net.ConnectException: t3:
//localhost:7007: Destination unreachable; nested exception is: 
    java.net.ConnectException: Connection refused: connect; No available router to destination
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:
203)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:
153)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:
352)
     
27 more
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is: 
    java.net.ConnectException: Connection refused: connect; No available router to destination
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:
464)
    at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:
315)
    at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:
251)
    at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:
194)
    at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:
225)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:
188)
     
29 more


换成 t3://localhost:7001
试成功Q看来不懂就到网上ؕCOPY代码Q还是不行的

 

context.java.naming.factory.initial
Error initializing JtaTransactionConfig while looking up UserTransaction (javax.transaction.UserTransaction). Cause: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial


jvm-Djava.naming.factory.initial=weblogic.jndi.WLInitialContextFactory




--Run as --Open Run Dialog--ArgumentsVM arguments




蒋d 2009-08-23 10:41 发表评论
]]>
关于Xdoclet 不能生成Struts 的问?/title><link>http://www.aygfsteel.com/jdskyy/archive/2008/12/17/246963.html</link><dc:creator>蒋d</dc:creator><author>蒋d</author><pubDate>Wed, 17 Dec 2008 12:54:00 GMT</pubDate><guid>http://www.aygfsteel.com/jdskyy/archive/2008/12/17/246963.html</guid><wfw:comment>http://www.aygfsteel.com/jdskyy/comments/246963.html</wfw:comment><comments>http://www.aygfsteel.com/jdskyy/archive/2008/12/17/246963.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jdskyy/comments/commentRss/246963.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jdskyy/services/trackbacks/246963.html</trackback:ping><description><![CDATA[<p>一直用Xdoclet 来管理项目的配置文g,今天用Myeclipse 建新?jin)一个工E?使用Myeclipse 的Strtus1.2的相兛_,发现生成相关的配|文件中<action-mappings> 部分竟然是空白的,百思不得其?反复试?发现取消Myeclipse 的Strtus1.2的相兛_,使用以前的Struts .jar又可以生?<br />  记录?日后再找到原?br /> <br /> 到google 里一?发现自己几年前还记录?jin)这?2009q我又遇C(jin)q个问题<br /> 发现,在xdoclet 里生成struts的配|文件时,一定要在lib下面存在<br /> struts.jar<br /> commons-collections-3.0.jar<br /> commons-digester.jar<br /> commons-logging-1.0.4.jar <br /> 否则可能不生成,也不出错.<br /> <br /> 莫名其妙的.</p> <img src ="http://www.aygfsteel.com/jdskyy/aggbug/246963.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jdskyy/" target="_blank">蒋d</a> 2008-12-17 20:54 <a href="http://www.aygfsteel.com/jdskyy/archive/2008/12/17/246963.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>|站遭受入R手记http://www.aygfsteel.com/jdskyy/archive/2008/06/12/207316.html蒋d蒋dThu, 12 Jun 2008 02:50:00 GMThttp://www.aygfsteel.com/jdskyy/archive/2008/06/12/207316.htmlhttp://www.aygfsteel.com/jdskyy/comments/207316.htmlhttp://www.aygfsteel.com/jdskyy/archive/2008/06/12/207316.html#Feedback0http://www.aygfsteel.com/jdskyy/comments/commentRss/207316.htmlhttp://www.aygfsteel.com/jdskyy/services/trackbacks/207316.html |络世界也不例外Q6月䆾的端午节注定是个隑ֿ的日?
1前言
     **** 旗下的网站随着?sh)子商务的大潮流来受领导的重视,商务的成功运作,铺天盖地的广告投入,让这个这不知名的网站一下子变得重要hQ网站作为集团公司客户关怀的主要渠道,已被人?zhn)?zhn)的盯上?jin).一场?zhn)无声息的战?sh)p样子开始了(jin)

2发现病毒
        6?Pq几天心(j)情不错,工作交接的也顺利.Q0点左叻I前台的编辑h员给我发来消息,q营部门要求加入l计的JQ本代?其实我最?ch)这些工作?jin)Q统计的QS代码谁敢保证没有问题呢?|站一但出CE_的时候,我就要冒hQ何况在q之前网站已出现q好几次问题?sh)(jin).QRQ攻击.QDQSdQ一轮接一轮.想些q些害怕.?sh)话再次沟通,认Q我在服务器上加载了(jin)关于l计的JQ代码.接下来无事,我l着交接文档
        从食堂回来很开?j),呵呵Q一边吃饭一边n受美丽风景的Z(x)是不多的Q在公司的猪圈里胡ؕ的吹_(d)天花乱坠的.Q_(d)QDQ也不知主怎么想的Q好好的名不P偏v?jin)个猪?不过在这个群里聊天还是很开?j)的Q聊累了(jin)qQ也不用ȝ?x)什么.
          一觉醒来,?fn)惯性的打开|站Q卡巴斯基猛的蟩ZH口提示恶意的js 我当时还没回q神来,认后敢紧打?sh)话认前台的?rn)态页面是否有发布Q确认后回想今天的修改,加载了(jin)l计的JQI不会(x)q么巧吧Q难道是因ؓ(f)q个中招?jin)?我敢紧要求前台发布h员删除相关的QS代码Q?br /> l果依旧Q卡巴斯基欢快的提示着恶意JS ,然后一个个的进行阻止. 从这Ҏ(gu)看,我还是很中意卡巴斯基q个软g的.果然不5分钟Q运营部门来?sh)话了(jin).说网站全面出现病毒.要求处理Q当然我急了(jin)Q以现在的访问量Q要是不快处理Q不知多用户会(x)受到影响Q我?sh)话通知发布pȝ的同事,要求重新发布新的?rn)态页面.同时通知***部门的项目负责hQ要求对pȝq行查毒Q?br />         一切都在紧张有的q行着Q我{待着l果Q同时也在想Q到底是哪能儿出错了(jin)呢?l计的JS?pȝ被hȝQ半时?***部门反馈消息服务器没有发现病毒.我的?j)随之h(hun)紧了(jin)Q如果服务器没有发现病毒Q就可能是DQ应用上有问题?sh)(jin).我查找今天刚发布的文Ӟ好多Q不定具体在哪儿出问题?sh)(jin).只能一个一个的L看源码.|站上病毒提CZ然存在.急得我就像热H里的蚂蚁团团{Q文件一个一个的Ҏ(gu)Q检查JS里的可疑代码Q2个小时过M(jin)Q没有一点进展.q是没有发现源头.H然惛_Q整站都出现?jin)恶意的JS代码Q肯定是共公文g出问题(sh)(jin)Q我?sh)话询问前台发布人员Q公共JQ_攄录.果然发现有个文g被修改了(jin)Q马上改?jin)回来,卡巴斯基停止的报告.挂码被清除出M(jin)Q终于松?jin)一口气,收拾东西回家.

3更换服务?br />     6h?好不Ҏ(gu)的挤?4路R,自从取消上沙车站?在下沙上64路就难了(jin).站的位置要不是好.上R都是个问?br /> 4事g升
5|安公司
6切按q_



蒋d 2008-06-12 10:50 发表评论
]]>
eclipse plugin 开?增加classPath http://www.aygfsteel.com/jdskyy/archive/2008/04/26/196183.html蒋d蒋dSat, 26 Apr 2008 02:41:00 GMThttp://www.aygfsteel.com/jdskyy/archive/2008/04/26/196183.htmlhttp://www.aygfsteel.com/jdskyy/comments/196183.htmlhttp://www.aygfsteel.com/jdskyy/archive/2008/04/26/196183.html#Feedback0http://www.aygfsteel.com/jdskyy/comments/commentRss/196183.htmlhttp://www.aygfsteel.com/jdskyy/services/trackbacks/196183.htmlq段旉在开发eclipse plugin 时候,要在生成目的时候自动增加library

其JAVA代码如下Q?br /> 增加src Q?br />

IPath path = new Path("src/main/java");
JavaCore.newSourceEntry(fCurrProject.getFolder(path).getFullPath())Q?br />

增加con

IPath aopPath = new Path("melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING20_AOP");
IClasspathEntry lib1 
= JavaCore.newContainerEntry(aopPath);


<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    
<classpathentry kind="src" path="src/main/java"/>
    
<classpathentry kind="src" path="src/test/java"/>
    
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING20_AOP"/>
    
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING20_CORE"/>
    
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING20_DAO"/>
    
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING20_WEB"/>
    
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/antlr.jar"/>
    
<classpathentry kind="lib" path="WebRoot/WEB-INF/lib/tecore.jar"/>
    
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>
    
<classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>


蒋d 2008-04-26 10:41 发表评论
]]>
Struts 关于多个配置文g的自动识?/title><link>http://www.aygfsteel.com/jdskyy/archive/2008/03/20/187395.html</link><dc:creator>蒋d</dc:creator><author>蒋d</author><pubDate>Thu, 20 Mar 2008 01:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/jdskyy/archive/2008/03/20/187395.html</guid><wfw:comment>http://www.aygfsteel.com/jdskyy/comments/187395.html</wfw:comment><comments>http://www.aygfsteel.com/jdskyy/archive/2008/03/20/187395.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jdskyy/comments/commentRss/187395.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jdskyy/services/trackbacks/187395.html</trackback:ping><description><![CDATA[<p>在用Struts q行开发的时候,Z(jin)目的ƈ行,?x)有多个配置文g?br /> ?struts-a.xml ; struts-b,xml ; struts-c.xml ;   <br /> q么多的配置文g如果都要手工配置到web.xml文g中,其实是很ȝ(ch)的。那么如何让他自己动加蝲到struts-*.xml呢?<br /> 如下Q?br /> </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"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff"><</span><span style="color: #800000">servlet</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">servlet-name</span><span style="color: #0000ff">></span><span style="color: #000000">action</span><span style="color: #0000ff"></</span><span style="color: #800000">servlet-name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">servlet-class</span><span style="color: #0000ff">></span><span style="color: #000000">com.allcom.base.util.AutoActionServlet</span><span style="color: #0000ff"></</span><span style="color: #800000">servlet-class</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">init-param</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">param-name</span><span style="color: #0000ff">></span><span style="color: #000000">config</span><span style="color: #0000ff"></</span><span style="color: #800000">param-name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">param-value</span><span style="color: #0000ff">></span><span style="color: #000000">/WEB-INF/struts-*.xml</span><span style="color: #0000ff"></</span><span style="color: #800000">param-value</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">init-param</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">init-param</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">param-name</span><span style="color: #0000ff">></span><span style="color: #000000">debug</span><span style="color: #0000ff"></</span><span style="color: #800000">param-name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">param-value</span><span style="color: #0000ff">></span><span style="color: #000000">3</span><span style="color: #0000ff"></</span><span style="color: #800000">param-value</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">init-param</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">init-param</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">param-name</span><span style="color: #0000ff">></span><span style="color: #000000">detail</span><span style="color: #0000ff"></</span><span style="color: #800000">param-name</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #0000ff"><</span><span style="color: #800000">param-value</span><span style="color: #0000ff">></span><span style="color: #000000">3</span><span style="color: #0000ff"></</span><span style="color: #800000">param-value</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"></</span><span style="color: #800000">init-param</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #0000ff"><</span><span style="color: #800000">load-on-startup</span><span style="color: #0000ff">></span><span style="color: #000000">5</span><span style="color: #0000ff"></</span><span style="color: #800000">load-on-startup</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #0000ff"></</span><span style="color: #800000">servlet</span><span style="color: #0000ff">></span></div> <p><br /> <br /> 在这里面Q我用了(jin)通配W,所有由struts-开头的.xml文g都可以进行自动加?br /> com.allcom.base.util.AutoActionServlet<br /> 其源码ؓ(f):<br /> </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"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">package</span><span style="color: #000000"> com.allcom.base.util;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.io.File;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.util.ArrayList;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> java.util.List;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> javax.servlet.ServletException;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">import</span><span style="color: #000000"> com.allcom.base.core.module.PropertyManager;<br /> <img id="Codehighlighter1_196_283_Open_Image" onclick="this.style.display='none'; Codehighlighter1_196_283_Open_Text.style.display='none'; Codehighlighter1_196_283_Closed_Image.style.display='inline'; Codehighlighter1_196_283_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_196_283_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_196_283_Closed_Text.style.display='none'; Codehighlighter1_196_283_Open_Image.style.display='inline'; Codehighlighter1_196_283_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span id="Codehighlighter1_196_283_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/** */</span><span id="Codehighlighter1_196_283_Open_Text"><span style="color: #008000">/**</span><span style="color: #008000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> * </span><span style="color: #808080">@author</span><span style="color: #008000"> <a href="mailto:jdskyy@163.com">Jdskyy</a><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> * 自动集成Struts 多个配置文g<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" /> * <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" /> * </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /> <img id="Codehighlighter1_363_1731_Open_Image" onclick="this.style.display='none'; Codehighlighter1_363_1731_Open_Text.style.display='none'; Codehighlighter1_363_1731_Closed_Image.style.display='inline'; Codehighlighter1_363_1731_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_363_1731_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_363_1731_Closed_Text.style.display='none'; Codehighlighter1_363_1731_Open_Image.style.display='inline'; Codehighlighter1_363_1731_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000"> AutoActionServlet </span><span style="color: #0000ff">extends</span><span style="color: #000000"> org.apache.struts.action.ActionServlet </span><span id="Codehighlighter1_363_1731_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_363_1731_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_416_1441_Open_Image" onclick="this.style.display='none'; Codehighlighter1_416_1441_Open_Text.style.display='none'; Codehighlighter1_416_1441_Closed_Image.style.display='inline'; Codehighlighter1_416_1441_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_416_1441_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_416_1441_Closed_Text.style.display='none'; Codehighlighter1_416_1441_Open_Image.style.display='inline'; Codehighlighter1_416_1441_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">protected</span><span style="color: #000000"> </span><span style="color: #0000ff">void</span><span style="color: #000000"> initOther()</span><span style="color: #0000ff">throws</span><span style="color: #000000"> ServletException </span><span id="Codehighlighter1_416_1441_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_416_1441_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />         String value </span><span style="color: #000000">=</span><span style="color: #000000"> getServletConfig().getInitParameter(</span><span style="color: #000000">"</span><span style="color: #000000">config</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img id="Codehighlighter1_526_1438_Open_Image" onclick="this.style.display='none'; Codehighlighter1_526_1438_Open_Text.style.display='none'; Codehighlighter1_526_1438_Closed_Image.style.display='inline'; Codehighlighter1_526_1438_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_526_1438_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_526_1438_Closed_Text.style.display='none'; Codehighlighter1_526_1438_Open_Image.style.display='inline'; Codehighlighter1_526_1438_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />         </span><span style="color: #0000ff">if</span><span style="color: #000000">(value </span><span style="color: #000000">!=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000"> </span><span style="color: #000000">&&</span><span style="color: #000000"> value.contains(</span><span style="color: #000000">"</span><span style="color: #000000">*</span><span style="color: #000000">"</span><span style="color: #000000">))</span><span id="Codehighlighter1_526_1438_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_526_1438_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             List xmlfilelist </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> ArrayList();    <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             String path </span><span style="color: #000000">=</span><span style="color: #000000"> PropertyManager.getProperty(</span><span style="color: #000000">"</span><span style="color: #000000">WebPath</span><span style="color: #000000">"</span><span style="color: #000000">)</span><span style="color: #000000">+</span><span style="color: #000000">"</span><span style="color: #000000">WEB-INF</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             File file </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> File(path);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">!</span><span style="color: #000000">file.exists()) </span><span style="color: #0000ff">return</span><span style="color: #000000">;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             </span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #000000">!</span><span style="color: #000000">file.isDirectory()) </span><span style="color: #0000ff">return</span><span style="color: #000000">; <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             String[] tempList </span><span style="color: #000000">=</span><span style="color: #000000"> file.list();<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             File temp </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             </span><span style="color: #0000ff">for</span><span style="color: #000000">(</span><span style="color: #0000ff">int</span><span style="color: #000000"> i </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">0</span><span style="color: #000000">; i </span><span style="color: #000000"><</span><span style="color: #000000"> tempList.length; i</span><span style="color: #000000">++</span><span style="color: #000000">) <br /> <img id="Codehighlighter1_891_1349_Open_Image" onclick="this.style.display='none'; Codehighlighter1_891_1349_Open_Text.style.display='none'; Codehighlighter1_891_1349_Closed_Image.style.display='inline'; Codehighlighter1_891_1349_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_891_1349_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_891_1349_Closed_Text.style.display='none'; Codehighlighter1_891_1349_Open_Image.style.display='inline'; Codehighlighter1_891_1349_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />             </span><span id="Codehighlighter1_891_1349_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_891_1349_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                 </span><span style="color: #0000ff">if</span><span style="color: #000000">(path.endsWith(File.separator))<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                     temp </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> File(path </span><span style="color: #000000">+</span><span style="color: #000000"> tempList[i]);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                 </span><span style="color: #0000ff">else</span><span style="color: #000000"> <br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                     temp </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> File(path </span><span style="color: #000000">+</span><span style="color: #000000"> File.separator </span><span style="color: #000000">+</span><span style="color: #000000"> tempList[i]);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    <br /> <img id="Codehighlighter1_1138_1337_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1138_1337_Open_Text.style.display='none'; Codehighlighter1_1138_1337_Closed_Image.style.display='inline'; Codehighlighter1_1138_1337_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1138_1337_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1138_1337_Closed_Text.style.display='none'; Codehighlighter1_1138_1337_Open_Image.style.display='inline'; Codehighlighter1_1138_1337_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />                 </span><span style="color: #0000ff">if</span><span style="color: #000000">(temp.isFile()) </span><span id="Codehighlighter1_1138_1337_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1138_1337_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                     String xmlFileName</span><span style="color: #000000">=</span><span style="color: #000000">temp.getName();<br /> <img id="Codehighlighter1_1224_1321_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1224_1321_Open_Text.style.display='none'; Codehighlighter1_1224_1321_Closed_Image.style.display='inline'; Codehighlighter1_1224_1321_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1224_1321_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1224_1321_Closed_Text.style.display='none'; Codehighlighter1_1224_1321_Open_Image.style.display='inline'; Codehighlighter1_1224_1321_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />                     </span><span style="color: #0000ff">if</span><span style="color: #000000">(xmlFileName.startsWith(</span><span style="color: #000000">"</span><span style="color: #000000">struts-</span><span style="color: #000000">"</span><span style="color: #000000">))</span><span id="Codehighlighter1_1224_1321_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1224_1321_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                         System.out.println(xmlFileName);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                         xmlfilelist.add(</span><span style="color: #000000">"</span><span style="color: #000000">/WEB-INF/</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">xmlFileName);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />                     }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />                 }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />             }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             String configStr </span><span style="color: #000000">=</span><span style="color: #000000">ListTOString(xmlfilelist);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />             config </span><span style="color: #000000">=</span><span style="color: #000000"> configStr;<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    <br /> <img id="Codehighlighter1_1490_1729_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1490_1729_Open_Text.style.display='none'; Codehighlighter1_1490_1729_Closed_Image.style.display='inline'; Codehighlighter1_1490_1729_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1490_1729_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1490_1729_Closed_Text.style.display='none'; Codehighlighter1_1490_1729_Open_Image.style.display='inline'; Codehighlighter1_1490_1729_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">public</span><span style="color: #000000"> </span><span style="color: #0000ff">static</span><span style="color: #000000"> String ListTOString(List ids) </span><span id="Codehighlighter1_1490_1729_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1490_1729_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        StringBuffer listBufferStr </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> StringBuffer();<br /> <img id="Codehighlighter1_1577_1691_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1577_1691_Open_Text.style.display='none'; Codehighlighter1_1577_1691_Closed_Image.style.display='inline'; Codehighlighter1_1577_1691_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1577_1691_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1577_1691_Closed_Text.style.display='none'; Codehighlighter1_1577_1691_Open_Image.style.display='inline'; Codehighlighter1_1577_1691_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">for</span><span style="color: #000000">(</span><span style="color: #0000ff">int</span><span style="color: #000000"> i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">; i </span><span style="color: #000000"><</span><span style="color: #000000">ids.size() ;i</span><span style="color: #000000">++</span><span style="color: #000000">)</span><span id="Codehighlighter1_1577_1691_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1577_1691_Open_Text"><span style="color: #000000">{<br /> <img id="Codehighlighter1_1590_1633_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1590_1633_Open_Text.style.display='none'; Codehighlighter1_1590_1633_Closed_Image.style.display='inline'; Codehighlighter1_1590_1633_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1590_1633_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1590_1633_Closed_Text.style.display='none'; Codehighlighter1_1590_1633_Open_Image.style.display='inline'; Codehighlighter1_1590_1633_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">if</span><span style="color: #000000">(i</span><span style="color: #000000">==</span><span style="color: #000000">0</span><span style="color: #000000">)</span><span id="Codehighlighter1_1590_1633_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1590_1633_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                listBufferStr.append(ids.get(i));<br /> <img id="Codehighlighter1_1638_1687_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1638_1687_Open_Text.style.display='none'; Codehighlighter1_1638_1687_Closed_Image.style.display='inline'; Codehighlighter1_1638_1687_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_1638_1687_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1638_1687_Closed_Text.style.display='none'; Codehighlighter1_1638_1687_Open_Image.style.display='inline'; Codehighlighter1_1638_1687_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />            }</span></span><span style="color: #0000ff">else</span><span id="Codehighlighter1_1638_1687_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_1638_1687_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                  listBufferStr.append(</span><span style="color: #000000">"</span><span style="color: #000000">,</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">ids.get(i));<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />        }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        </span><span style="color: #0000ff">return</span><span style="color: #000000"> listBufferStr.toString();<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span></div> <p><br /> l过AutoActionServlet的{换,Strtus  可以自动识别配|文件了(jin)</p> <img src ="http://www.aygfsteel.com/jdskyy/aggbug/187395.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jdskyy/" target="_blank">蒋d</a> 2008-03-20 09:11 <a href="http://www.aygfsteel.com/jdskyy/archive/2008/03/20/187395.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DWR 常用功能区备?/title><link>http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187329.html</link><dc:creator>蒋d</dc:creator><author>蒋d</author><pubDate>Wed, 19 Mar 2008 10:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187329.html</guid><wfw:comment>http://www.aygfsteel.com/jdskyy/comments/187329.html</wfw:comment><comments>http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187329.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jdskyy/comments/commentRss/187329.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jdskyy/services/trackbacks/187329.html</trackback:ping><description><![CDATA[<p>DWR 常用功能</p> <p>转换指定的属?如下只{?quarterId,和quarterName两个属?br /> </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"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">convert converter</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">bean</span><span style="color: #000000">"</span><span style="color: #000000"> match</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">com.allcom.panel.persist.Quarter</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />          </span><span style="color: #000000"><</span><span style="color: #000000">param name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">include</span><span style="color: #000000">"</span><span style="color: #000000"> value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">quarterId,quarterName</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">convert</span><span style="color: #000000">></span></div> <p><br /> 只包含指定的Ҏ(gu) <include method="createFavorite"/><br /> </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"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">create creator</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">spring</span><span style="color: #000000">"</span><span style="color: #000000">  javascript</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">favoriteDao</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />           </span><span style="color: #000000"><</span><span style="color: #000000">param name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">beanName</span><span style="color: #000000">"</span><span style="color: #000000"> value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">favoriteDao</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />           </span><span style="color: #000000"><</span><span style="color: #000000">include method</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">createFavorite</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"></</span><span style="color: #000000">create</span><span style="color: #000000">></span></div> <img src ="http://www.aygfsteel.com/jdskyy/aggbug/187329.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jdskyy/" target="_blank">蒋d</a> 2008-03-19 18:16 <a href="http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187329.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JAVA 用正则区分空?/title><link>http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187327.html</link><dc:creator>蒋d</dc:creator><author>蒋d</author><pubDate>Wed, 19 Mar 2008 10:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187327.html</guid><wfw:comment>http://www.aygfsteel.com/jdskyy/comments/187327.html</wfw:comment><comments>http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187327.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/jdskyy/comments/commentRss/187327.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/jdskyy/services/trackbacks/187327.html</trackback:ping><description><![CDATA[<p> </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"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000">String keyWord </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">字符1 字符2 字符3</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img id="Codehighlighter1_72_225_Open_Image" onclick="this.style.display='none'; Codehighlighter1_72_225_Open_Text.style.display='none'; Codehighlighter1_72_225_Closed_Image.style.display='inline'; Codehighlighter1_72_225_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_72_225_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_72_225_Closed_Text.style.display='none'; Codehighlighter1_72_225_Open_Image.style.display='inline'; Codehighlighter1_72_225_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #0000ff">if</span><span style="color: #000000">(</span><span style="color: #0000ff">null</span><span style="color: #000000">!=</span><span style="color: #000000">keyWord </span><span style="color: #000000">&&</span><span style="color: #000000"> </span><span style="color: #000000">!</span><span style="color: #000000">""</span><span style="color: #000000">.equals(keyWord))</span><span id="Codehighlighter1_72_225_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_72_225_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />    String keyWords[] </span><span style="color: #000000">=</span><span style="color: #000000"> keyWord.split(</span><span style="color: #000000">"</span><span style="color: #000000">\\s+</span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img id="Codehighlighter1_156_223_Open_Image" onclick="this.style.display='none'; Codehighlighter1_156_223_Open_Text.style.display='none'; Codehighlighter1_156_223_Closed_Image.style.display='inline'; Codehighlighter1_156_223_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_156_223_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_156_223_Closed_Text.style.display='none'; Codehighlighter1_156_223_Open_Image.style.display='inline'; Codehighlighter1_156_223_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />    </span><span style="color: #0000ff">for</span><span style="color: #000000"> (</span><span style="color: #0000ff">int</span><span style="color: #000000"> p</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;p</span><span style="color: #000000"><</span><span style="color: #000000">keyWords.length;p</span><span style="color: #000000">++</span><span style="color: #000000">)</span><span id="Codehighlighter1_156_223_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img src="http://www.aygfsteel.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_156_223_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        String key </span><span style="color: #000000">=</span><span style="color: #000000"> keyWords[p];<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />        System.out.println(</span><span style="color: #000000">"</span><span style="color: #000000">分隔后的字符</span><span style="color: #000000">"</span><span style="color: #000000">+</span><span style="color: #000000">key);<br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />    }</span></span><span style="color: #000000"><br /> <img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />}</span></span></div> <img src ="http://www.aygfsteel.com/jdskyy/aggbug/187327.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/jdskyy/" target="_blank">蒋d</a> 2008-03-19 18:14 <a href="http://www.aygfsteel.com/jdskyy/archive/2008/03/19/187327.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ExtremeTable 表单复选框http://www.aygfsteel.com/jdskyy/archive/2008/03/12/185778.html蒋d蒋dWed, 12 Mar 2008 10:21:00 GMThttp://www.aygfsteel.com/jdskyy/archive/2008/03/12/185778.htmlhttp://www.aygfsteel.com/jdskyy/comments/185778.htmlhttp://www.aygfsteel.com/jdskyy/archive/2008/03/12/185778.html#Feedback0http://www.aygfsteel.com/jdskyy/comments/commentRss/185778.htmlhttp://www.aygfsteel.com/jdskyy/services/trackbacks/185778.html复选框的JSP面

 <form action="${ctx}/merchant/product.do?method=delete" name="outform" id="outform" method="post">
                   
<ec:table var="productForm" items="Products"
                    action
="${ctx}/merchant/product.do" showPagination="true" showExports="true" showStatusBar="true" sortable="true" filterable="false" rowsDisplayed="15"
                    retrieveRowsCallback
="org.extremecomponents.table.callback.LimitCallback" 
                    filterRowsCallback
="org.extremecomponents.table.callback.LimitCallback"   
                    sortRowsCallback
="org.extremecomponents.table.callback.LimitCallback" form="outform">
                    
<ec:exportXls fileName="productList.xls" tooltip="toolbar.text.xls" />
                    
<ec:row>
                       
<ec:column property="name" title="选择" style="width:5px" filterable="false"  width="5%" sortable="false"> 
                        
<input type="checkbox" name="productID"  value="${productForm.productId}"/> 
                        
</ec:column> 
                        
<ec:column property="productName" title="PRODUCT.productName" width="10%"/></ec:row>
                
</ec:table>
                
<input type="submit" value="扚w删除" name="submitData">
                
</form>

注意的地?/strong>Q?br />      1Q?<form action="${ctx}/merchant/product.do?method=delete" name="outform" id="outform" method="post">
     2Q?nbsp; <ec:table ...... form="outform" >
     3Q?nbsp;  <ec:column property="name" title="选择" style="width:5px" filterable="false"  width="5%" sortable="false"> 
                     <input type="checkbox" name="productID"  value="${productForm.productId}"/> 
              </ec:column> 
              </form>
     
  



蒋d 2008-03-12 18:21 发表评论
]]>
E序员的路程---成长路上的java 书目2http://www.aygfsteel.com/jdskyy/archive/2008/03/10/184978.html蒋d蒋dMon, 10 Mar 2008 02:54:00 GMThttp://www.aygfsteel.com/jdskyy/archive/2008/03/10/184978.htmlhttp://www.aygfsteel.com/jdskyy/comments/184978.htmlhttp://www.aygfsteel.com/jdskyy/archive/2008/03/10/184978.html#Feedback0http://www.aygfsteel.com/jdskyy/comments/commentRss/184978.htmlhttp://www.aygfsteel.com/jdskyy/services/trackbacks/184978.html








蒋d 2008-03-10 10:54 发表评论
]]>
E序员的路程---成长路上的java 书目1 http://www.aygfsteel.com/jdskyy/archive/2008/03/10/184977.html蒋d蒋dMon, 10 Mar 2008 02:52:00 GMThttp://www.aygfsteel.com/jdskyy/archive/2008/03/10/184977.htmlhttp://www.aygfsteel.com/jdskyy/comments/184977.htmlhttp://www.aygfsteel.com/jdskyy/archive/2008/03/10/184977.html#Feedback1http://www.aygfsteel.com/jdskyy/comments/commentRss/184977.htmlhttp://www.aygfsteel.com/jdskyy/services/trackbacks/184977.html 











蒋d 2008-03-10 10:52 发表评论
]]>
վ֩ģ壺 ¯| ¸| | | β| կ| | ƽ| | ¡| Ϫ| | | | ɽ| | ʯ| Ϫ| | տ| żҸ| | | | ˳| ɣ| | Ǩ| | ׼| ʯ| | ˮ| Ͽ| ɽ| | | Ϫ| ƺ| | ͼƬ|