??xml version="1.0" encoding="utf-8" standalone="yes"?>精品一区二区三区久久久,日韩国产精品一区二区三区,欧美一区二区性http://www.aygfsteel.com/linlin2005/archive/2012/06/18/381018.htmllubaolinlubaolinMon, 18 Jun 2012 09:11:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2012/06/18/381018.htmlhttp://www.aygfsteel.com/linlin2005/comments/381018.htmlhttp://www.aygfsteel.com/linlin2005/archive/2012/06/18/381018.html#Feedback0http://www.aygfsteel.com/linlin2005/comments/commentRss/381018.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/381018.html
struts2的sQiterator 可以遍历 数据栈里面的M数组Q集合等{?以下几个单的demoQ?br />s:iterator 标签?个属性:
    valueQ被q代的集?br />    id   Q指定集合里面的元素的id
    status q代元素的烦?/div>
1:jsp面定义元素写法 数组或list

<s:iterator value="{'1','2','3','4','5'}" id='number'>
    <s:property value='number'/>A
</s:iterator>
打印l果? 1A2A3A4A5A
2:索引的用?br />如果指定了statusQ每ơ的q代数据都有IteratorStatus的实例,它有以下几个Ҏ
int getCount()q回当前q代了几个元?br />int getIndex()q回当前元素索引
boolean isEven()当然的烦引是否偶?br />boolean isFirst()当前是否W一个元?br />boolean isLast()
boolean isOdd()当前元素索引是否奇数
<s:iterator value="{'a','b','c'}" id='char' status='st'>
    <s:if test="#st.Even">
        现在的烦引是奇数?<s:property value='#st.index'/>
    </s:if>
    当前元素|<s:property value='char'/>
</s:iterator>
3Q遍历map
value可以直接定义为:
value="#{"1":"a","2":"b"}"
每个元素以都好隔开。元素之间的key和value 冒号隔开
value也可以是数据栈里面的java.util.Map对象
遍历写法如下Q?/div>
<s:iterator value="map" id="id" status="st">
     key : <s:property value='key'/>
     value:<s:property vlaue='value'/>
</s:iterator>
当然key 和value 都可以java ?Object
3Q遍历数据栈.单的Listc,
List<Attr>
class Attr{String attrName;String getAttrName(){return "123";}}
<s:iterator value="label" id="id">
    <s:property value="#id.attrName" />
</s:iterator>
当然value q可以写?value="%{label}" label可以?操作
label的属性List 可以写成value="%{label.list}" 相当于:getLabel().getList();
4Q遍?个listQ?br />List<AttrName> attrN {color,size,style}
List<AttrValue> attrV {red,20,gay}
q?个list的元素是一一对应的,一个attrN对应一个attrV
<s:iterator value="%{attrN }" id="id"   status="status">
index    is : <s:property value='status.index'/>
attrName is : <s:property value='id'/> or <s:property value='%{id}'/>
attrName is : <s:property value='%{attrV[#status.index]}'/>
</s:iterator>  
转自Q?a href="http://www.aygfsteel.com/Reg/archive/2009/11/20/303085.html">http://www.aygfsteel.com/Reg/archive/2009/11/20/303085.html


lubaolin 2012-06-18 17:11 发表评论
]]>如何扑֛昄桌面http://www.aygfsteel.com/linlin2005/archive/2011/04/21/348670.htmllubaolinlubaolinThu, 21 Apr 2011 01:11:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2011/04/21/348670.htmlhttp://www.aygfsteel.com/linlin2005/comments/348670.htmlhttp://www.aygfsteel.com/linlin2005/archive/2011/04/21/348670.html#Feedback0http://www.aygfsteel.com/linlin2005/comments/commentRss/348670.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/348670.html

lubaolin 2011-04-21 09:11 发表评论
]]>
HTML转义W?/title><link>http://www.aygfsteel.com/linlin2005/archive/2010/09/07/331340.html</link><dc:creator>lubaolin</dc:creator><author>lubaolin</author><pubDate>Tue, 07 Sep 2010 10:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/linlin2005/archive/2010/09/07/331340.html</guid><wfw:comment>http://www.aygfsteel.com/linlin2005/comments/331340.html</wfw:comment><comments>http://www.aygfsteel.com/linlin2005/archive/2010/09/07/331340.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/linlin2005/comments/commentRss/331340.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/linlin2005/services/trackbacks/331340.html</trackback:ping><description><![CDATA[     摘要: HTML字符实体QCharacter EntitiesQ,转义字符ԌEscape SequenceQ? Z么要用{义字W串Q?HTML?lt;Q?gt;Q?amp;{有Ҏ含义Q?lt;Q?gt;Q用于链接签Q?amp;用于转义Q,不能直接使用。这些符h不显C在我们最l看到的|页里的Q那如果我们希望在网中昄q些W号Q该怎么办呢Q? q就要说到HTML转义字符ԌEsca...  <a href='http://www.aygfsteel.com/linlin2005/archive/2010/09/07/331340.html'>阅读全文</a><img src ="http://www.aygfsteel.com/linlin2005/aggbug/331340.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/linlin2005/" target="_blank">lubaolin</a> 2010-09-07 18:30 <a href="http://www.aygfsteel.com/linlin2005/archive/2010/09/07/331340.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用jzip做打包下?/title><link>http://www.aygfsteel.com/linlin2005/archive/2009/10/22/299360.html</link><dc:creator>lubaolin</dc:creator><author>lubaolin</author><pubDate>Thu, 22 Oct 2009 06:30:00 GMT</pubDate><guid>http://www.aygfsteel.com/linlin2005/archive/2009/10/22/299360.html</guid><wfw:comment>http://www.aygfsteel.com/linlin2005/comments/299360.html</wfw:comment><comments>http://www.aygfsteel.com/linlin2005/archive/2009/10/22/299360.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/linlin2005/comments/commentRss/299360.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/linlin2005/services/trackbacks/299360.html</trackback:ping><description><![CDATA[<p>import java.io.File;<br /> import java.io.FileInputStream;<br /> import java.io.IOException;<br /> import java.util.Date;</p> <p>import javax.servlet.ServletException;<br /> import javax.servlet.http.HttpServlet;<br /> import javax.servlet.http.HttpServletRequest;<br /> import javax.servlet.http.HttpServletResponse;</p> <p>import net.sf.jazzlib.ZipEntry;<br /> import net.sf.jazzlib.ZipOutputStream;</p> <p>public class BatchDownload extends HttpServlet {</p>  public BatchDownload() {<br />   super();<br />  }<br /> <p> public void doGet(HttpServletRequest request, HttpServletResponse response)<br />    throws ServletException, IOException {<br />   response.setContentType("APPLICATION/OCTET-STREAM");<br />   response.setHeader("Content-Disposition","attachment; filename="+this.getZipFilename());<br />   System.out.println("in BatchDownload................"); <br />   ZipOutputStream zos = new ZipOutputStream(response.getOutputStream());   <br />      File[] files = new File[2];<br />      files[0]=new File("c:/zip/文gA.doc");<br />      files[1]=new File("c:/zip/文gB.doc");<br />      zipFile(files, "", zos);   <br />      zos.flush();   <br />      zos.close();   </p> <p> }<br />  private void zipFile(File[] subs, String baseName, ZipOutputStream zos) throws IOException {     <br />       for (int i=0;i<subs.length;i++) {<br />        File f=subs[i];<br />        zos.putNextEntry(new ZipEntry(baseName + f.getName()));   <br />        FileInputStream fis = new FileInputStream(f);   <br />        byte[] buffer = new byte[1024];   <br />        int r = 0;   <br />        while ((r = fis.read(buffer)) != -1) {   <br />            zos.write(buffer, 0, r);   <br />        }   <br />        fis.close(); <br />       }<br />  }<br />  private String getZipFilename(){<br />   Date date=new Date();<br />   String s=date.getTime()+".zip";<br />   return s;<br />  }</p>  public void doPost(HttpServletRequest request, HttpServletResponse response)<br />    throws ServletException, IOException {<br />   this.doGet(request, response);<br />  }<br /> } <img src ="http://www.aygfsteel.com/linlin2005/aggbug/299360.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/linlin2005/" target="_blank">lubaolin</a> 2009-10-22 14:30 <a href="http://www.aygfsteel.com/linlin2005/archive/2009/10/22/299360.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ORA-28547:q接服务器失败,可能是Oracle Net理错误http://www.aygfsteel.com/linlin2005/archive/2009/09/21/295886.htmllubaolinlubaolinMon, 21 Sep 2009 09:19:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2009/09/21/295886.htmlhttp://www.aygfsteel.com/linlin2005/comments/295886.htmlhttp://www.aygfsteel.com/linlin2005/archive/2009/09/21/295886.html#Feedback3http://www.aygfsteel.com/linlin2005/comments/commentRss/295886.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/295886.html
转自Qhttp://blog.csdn.net/chenjuntj2007/archive/2009/07/04/4321640.aspx

lubaolin 2009-09-21 17:19 发表评论
]]>
oracle创徏表空?/title><link>http://www.aygfsteel.com/linlin2005/archive/2009/07/23/287980.html</link><dc:creator>lubaolin</dc:creator><author>lubaolin</author><pubDate>Thu, 23 Jul 2009 02:35:00 GMT</pubDate><guid>http://www.aygfsteel.com/linlin2005/archive/2009/07/23/287980.html</guid><wfw:comment>http://www.aygfsteel.com/linlin2005/comments/287980.html</wfw:comment><comments>http://www.aygfsteel.com/linlin2005/archive/2009/07/23/287980.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/linlin2005/comments/commentRss/287980.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/linlin2005/services/trackbacks/287980.html</trackback:ping><description><![CDATA[//创徏临时表空?<br /> <br /> create temporary tablespace test_temp <br /> tempfile 'E:\oracle\product\10.2.0\oradata\testserver\test_temp01.dbf' <br /> size 32m <br /> autoextend on <br /> next 32m maxsize 2048m <br /> extent management local; <br /> <br /> //创徏数据表空?<br /> create tablespace test_data <br /> logging <br /> datafile 'E:\oracle\product\10.2.0\oradata\testserver\test_data01.dbf' <br /> size 32m <br /> autoextend on <br /> next 32m maxsize 2048m <br /> extent management local; <br /> <br /> //创徏用户q指定表I间 <br /> create user username identified by password <br /> default tablespace test_data <br /> temporary tablespace test_temp; <br /> <br /> //l用h予权?<br /> <br /> grant connect,resource to username; <br /> <br /> //以后以该用户dQ创建的M数据库对象都属于test_temp 和test_data表空_q就不用在每创徏一个对象给其指定表I间了?br /> <br /> 转蝲Qhttp://virgos.javaeye.com/blog/337976 <img src ="http://www.aygfsteel.com/linlin2005/aggbug/287980.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/linlin2005/" target="_blank">lubaolin</a> 2009-07-23 10:35 <a href="http://www.aygfsteel.com/linlin2005/archive/2009/07/23/287980.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SSH-ERROR:org.hibernate.LazyInitializationException: failed to lazily initializehttp://www.aygfsteel.com/linlin2005/archive/2009/07/03/285366.htmllubaolinlubaolinFri, 03 Jul 2009 08:19:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2009/07/03/285366.htmlhttp://www.aygfsteel.com/linlin2005/comments/285366.htmlhttp://www.aygfsteel.com/linlin2005/archive/2009/07/03/285366.html#Feedback0http://www.aygfsteel.com/linlin2005/comments/commentRss/285366.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/285366.htmlstruts2+spring2.x+hibernate3.x 懒加载异常:org.hibernate.LazyInitializationException: failed to lazily initialize

Hibernate的Lazy初始?:n关系Ӟ必须保证是在同一个Session内部使用q个关系集合Q不然Hiernate抛出异常:org.hibernate.LazyInitializationException: failed to lazily initialize of....
两种处理ҎQ?br /> 一、设|lazy=falseQ此Ҏ不再累述?br /> 二、用OpenSessionInViewFilterqo器,注意hibernateFilterqo器和struts2qo器在映射时的先后序。同时要配置事物处理Q否则会Dsession处于只读状态而不能做修改、删除的动作?br /> 卛_web.xml文g中如下配|:
     <!-- Spring ApplicationContext配置文g的加载目录?-->  
 <context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>classpath*:spring/applicationContext.xml</param-value>
 </context-param>

 <!-- 解决延迟加蝲的问?-->
 <filter>
  <filter-name>hibernateFilter</filter-name>
  <filter-class>
   org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
  </filter-class>
 </filter>
 
 <!-- l承Struts2的FilterDispatcherc,具备GBK{编码设定功能与struts2的actionqo功能?-->
 <filter>
  <filter-name>struts2</filter-name>
  <filter-class>
   com.iman.nrms.opm.web.common.FilterDispatcher
  </filter-class>
  <init-param>
   <param-name>encoding</param-name>
   <param-value>GBK</param-value>
  </init-param>
 </filter>
 <filter>
         <filter-name>struts-cleanup</filter-name>
         <filter-class>
             org.apache.struts2.dispatcher.ActionContextCleanUp
         </filter-class>
     </filter>
 
 <filter-mapping>
  <filter-name>hibernateFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 
 <filter-mapping>
  <filter-name>struts2</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 
 <filter-mapping>
  <filter-name>struts-cleanup</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>

Hibernate 允许对关联对象、属性进行gq加载,但是必须保证延迟加蝲的操作限于同一?Hibernate Session 范围之内q行。如?Service 层返回一个启用了延迟加蝲功能的领域对象给 Web 层,?Web 层访问到那些需要gq加载的数据Ӟ׃加蝲领域对象?Hibernate Session 已经关闭Q这些导致gq加载数据的讉K异常。而Spring为我们提供的OpenSessionInViewFilterqo器ؓ我们很好的解决了q个问题。OpenSessionInViewFilter的主要功能是使每个请求过E绑定一?Hibernate SessionQ即使最初的事务已经完成了,也可以在 Web 层进行gq加载的操作。OpenSessionInViewFilter qo器将 Hibernate Session l定到请求线E中Q它自动被 Spring 的事务管理器探测到。所?OpenSessionInViewFilter 适用?Service 层用HibernateTransactionManager ?JtaTransactionManager q行事务理的环境,也可以用于非事务只读的数据操作中?
request-->open session-->打开q接、开始事?->持久操作-->渲染Q关闭连接、sessionQ?->response 其中一些过E省略了Q不是很兛_?/p>

 

引自Q?a >http://blog.csdn.net/fhwbj/archive/2009/03/25/4022805.aspx



lubaolin 2009-07-03 16:19 发表评论
]]>
eclipse下安装js插g-spket(支持Ext)http://www.aygfsteel.com/linlin2005/archive/2009/04/06/264158.htmllubaolinlubaolinMon, 06 Apr 2009 14:20:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2009/04/06/264158.htmlhttp://www.aygfsteel.com/linlin2005/comments/264158.htmlhttp://www.aygfsteel.com/linlin2005/archive/2009/04/06/264158.html#Feedback0http://www.aygfsteel.com/linlin2005/comments/commentRss/264158.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/264158.html Name: "Spket", Url: "http://www.spket.com/update/"下蝲完毕重启 Eclipse

2、Window -> Preferences -> Spket -> JavaScript Profiles -> New Q?
输入“ExtJS”点击OKQ?
选择“ExtJS” q点?#8220;Add Library”然后在下拉条中选取“ExtJS”Q?
选择 “ExtJS”q点?#8220;Add File”Q然后在你的./ext-2.x/source目录中选取“ext.jsb” 文gQ?

3、设|新的ExtJS ProfileQ选中q点?#8220;JavaScript Profiles” 对话框右手边?#8220;Defalut”按钮Q?

4、JS打开方式?Window -> Preferences ->General-> Editors-> File...选择JS  ?Spket JavaScript Editor(default)

lubaolin 2009-04-06 22:20 发表评论
]]>
W一ơ试水系l分析师考试http://www.aygfsteel.com/linlin2005/archive/2008/07/21/216350.htmllubaolinlubaolinMon, 21 Jul 2008 06:34:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2008/07/21/216350.htmlhttp://www.aygfsteel.com/linlin2005/comments/216350.htmlhttp://www.aygfsteel.com/linlin2005/archive/2008/07/21/216350.html#Feedback0http://www.aygfsteel.com/linlin2005/comments/commentRss/216350.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/216350.html半年前,报考了pȝ分析师,也没怎么看书,只是q试试水有多深的想法去考的Q结果既在我意料之中Q也在我意料之外Q得了个39/33/39Q只?/12/6分就可以通过了,其是论?居然得了39分,看来q是有希望的Q所以决定再ơ冲击,q以此做为^収ͼl习论文写作Q假如写一论文就和写一日Ch到擒?..........



lubaolin 2008-07-21 14:34 发表评论
]]>
oracle 对列求积 http://www.aygfsteel.com/linlin2005/archive/2008/07/21/216347.htmllubaolinlubaolinMon, 21 Jul 2008 06:26:00 GMThttp://www.aygfsteel.com/linlin2005/archive/2008/07/21/216347.htmlhttp://www.aygfsteel.com/linlin2005/comments/216347.htmlhttp://www.aygfsteel.com/linlin2005/archive/2008/07/21/216347.html#Feedback0http://www.aygfsteel.com/linlin2005/comments/commentRss/216347.htmlhttp://www.aygfsteel.com/linlin2005/services/trackbacks/216347.htmlSQL> select * from t1;

        N1 V1                NID
---------- ---------- ----------
         1 aa                 61
         2 aa                 62
         3 bb                 83
         4 aa                 64

SQL> select exp(sum(ln(nid))) from t1 where v1='aa';

EXP(SUM(LN(NID)))
-----------------
           242048

已用旉:  00: 00: 00.02

验证一?)
SQL> select 61*62*64 from dual;

  61*62*64
----------
    242048

已用旉:  00: 00: 00.00

先分l然后求U?font face="宋体">
SQL> select exp(sum(ln(nid))) from t1 group by v1;

EXP(SUM(LN(NID)))
-----------------
           242048
               83


oracle q东东挺有意?
转自:http://blog.sina.com.cn/s/blog_54eeb5d901000ae5.html



lubaolin 2008-07-21 14:26 发表评论
]]>
վ֩ģ壺 | | | | ˮ| ƽ| | ¤| | | | ̫| | | ͻȪ| | | | Ϫ| ƽ| | | | ƽ| ̩| | | | ±| | ɽ| ԫ| | Զ| | | ľ˹| ³ɽ| ɽ| ޳| |