锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美色偷偷大香,中文字幕一区二区三区四区 ,久久精品成人一区二区三区蜜臀http://www.aygfsteel.com/tigershi10/Good Luckzh-cnThu, 19 Jun 2025 20:38:30 GMTThu, 19 Jun 2025 20:38:30 GMT60Hibernate鍜孲pring鏁村悎涓暟鎹煡璇ql涓嶤riteria Queryhttp://www.aygfsteel.com/tigershi10/archive/2007/09/26/148392.htmlILOVEYOUILOVEYOUWed, 26 Sep 2007 09:29:00 GMThttp://www.aygfsteel.com/tigershi10/archive/2007/09/26/148392.htmlhttp://www.aygfsteel.com/tigershi10/comments/148392.htmlhttp://www.aygfsteel.com/tigershi10/archive/2007/09/26/148392.html#Feedback3http://www.aygfsteel.com/tigershi10/comments/commentRss/148392.htmlhttp://www.aygfsteel.com/tigershi10/services/trackbacks/148392.html
 1public List<Record> getRecordsOrderByCreateTime(Date startDate, Date endDate) {
 2        String hql = "from Record record order by record.createTime desc";
 3        List<Record> listRecord = getHibernateTemplate().find(hql);
 4        for(int i = 0; i < listRecord.size(); i++{
 5            if!(listRecord.get(i).getCreateTime().after(startDate) 
 6                    && listRecord.get(i).getCreateTime().before(endDate)) ) {
 7                listRecord.remove(i);
 8            }

 9        }

10        if(listRecord.size() == 0){
11            return null;
12        }

13        return listRecord;       
         }

涓婇潰鐢ㄧ殑鏄痟ql璇彞錛屾病鑳芥壘鍒頒粈涔堝ソ鐨刪ql璇彞錛屾墍浠ユ墽琛屾晥鐜囨瘮杈冧綆

1public List<Record> getRecordsOrderByCreateTime(Date startDate, Date endDate) {
2        DetachedCriteria criteria = DetachedCriteria.forClass(Record.class);
3        criteria.add(Expression.ge("createTime", startDate));
4        criteria.add(Expression.le("createTime", endDate));
5        criteria.addOrder(Order.desc("createTime"));
6        List<Record> listRecord = getHibernateTemplate().findByCriteria(criteria);
7        if(listRecord.size() == 0){
8            return null;
9        }
            return listRecord;
        }

榪欎釜鐢ㄧ殑鏄?Criteria Query 鐢變簬閲岄潰鐩存帴灝佽浜嗗ソ澶氭瘮杈冪殑鏂規硶錛屾晥鐜囨瘮杈冩悶

ILOVEYOU 2007-09-26 17:29 鍙戣〃璇勮
]]>
Date鍜孲tring鐨勮漿鎹?/title><link>http://www.aygfsteel.com/tigershi10/archive/2007/09/26/148385.html</link><dc:creator>ILOVEYOU</dc:creator><author>ILOVEYOU</author><pubDate>Wed, 26 Sep 2007 09:17:00 GMT</pubDate><guid>http://www.aygfsteel.com/tigershi10/archive/2007/09/26/148385.html</guid><wfw:comment>http://www.aygfsteel.com/tigershi10/comments/148385.html</wfw:comment><comments>http://www.aygfsteel.com/tigershi10/archive/2007/09/26/148385.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/tigershi10/comments/commentRss/148385.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/tigershi10/services/trackbacks/148385.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"><span style="color: #008080"> 1</span><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">import</span><span style="color: #000000"> java.text.DateFormat; <br /> </span><span style="color: #008080"> 2</span><span style="color: #000000"><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.text.SimpleDateFormat; <br /> </span><span style="color: #008080"> 3</span><span style="color: #000000"><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.text.ParseException; <br /> </span><span style="color: #008080"> 4</span><span style="color: #000000"><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.Calendar; <br /> </span><span style="color: #008080"> 5</span><span style="color: #000000"><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.Date; <br /> </span><span style="color: #008080"> 6</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> </span><span style="color: #008080"> 7</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> </span><span style="color: #008080"> 8</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />DateFormat format </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> SimpleDateFormat(</span><span style="color: #000000">"</span><span style="color: #000000">yyyy-MM-dd</span><span style="color: #000000">"</span><span style="color: #000000">);         <br /> </span><span style="color: #008080"> 9</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            Date date </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;    <br /> </span><span style="color: #008080">10</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            String str </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">null</span><span style="color: #000000">;                  <br /> </span><span style="color: #008080">11</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />                        <br /> </span><span style="color: #008080">12</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> String杞珼ate    </span><span style="color: #008000"><br /> </span><span style="color: #008080">13</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">            str </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">2007-9-26</span><span style="color: #000000">"</span><span style="color: #000000">;          <br /> </span><span style="color: #008080">14</span><span style="color: #000000"><img id="Codehighlighter1_361_440_Open_Image" onclick="this.style.display='none'; Codehighlighter1_361_440_Open_Text.style.display='none'; Codehighlighter1_361_440_Closed_Image.style.display='inline'; Codehighlighter1_361_440_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_361_440_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_361_440_Closed_Text.style.display='none'; Codehighlighter1_361_440_Open_Image.style.display='inline'; Codehighlighter1_361_440_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />            </span><span style="color: #0000ff">try</span><span style="color: #000000"> </span><span id="Codehighlighter1_361_440_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_361_440_Open_Text"><span style="color: #000000">{    <br /> </span><span style="color: #008080">15</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                date </span><span style="color: #000000">=</span><span style="color: #000000"> format.parse(str);  </span><span style="color: #008000">//</span><span style="color: #008000"> Wed sep 26 00:00:00 CST 2007    </span><span style="color: #008000"><br /> </span><span style="color: #008080">16</span><span style="color: #008000"><img id="Codehighlighter1_467_508_Open_Image" onclick="this.style.display='none'; Codehighlighter1_467_508_Open_Text.style.display='none'; Codehighlighter1_467_508_Closed_Image.style.display='inline'; Codehighlighter1_467_508_Closed_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_467_508_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_467_508_Closed_Text.style.display='none'; Codehighlighter1_467_508_Open_Image.style.display='inline'; Codehighlighter1_467_508_Open_Text.style.display='inline';" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" /></span><span style="color: #000000">            }</span></span><span style="color: #000000"> </span><span style="color: #0000ff">catch</span><span style="color: #000000"> (ParseException e) </span><span id="Codehighlighter1_467_508_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_467_508_Open_Text"><span style="color: #000000">{    <br /> </span><span style="color: #008080">17</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                e.printStackTrace();    <br /> </span><span style="color: #008080">18</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000">    <br /> </span><span style="color: #008080">19</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />                        <br /> </span><span style="color: #008080">20</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            date </span><span style="color: #000000">=</span><span style="color: #000000"> java.sql.Date.valueOf(str);  </span><span style="color: #008000">//</span><span style="color: #008000"> 鍙繚鐣欐棩鏈熼儴鍒嗭紝榪斿洖鐨勬槸java.sql.Date  2007-9-26    <br /> </span><span style="color: #008080">21</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />                        <br /> </span><span style="color: #008080">22</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            </span><span style="color: #008000">//</span><span style="color: #008000"> Date杞琒tring    </span><span style="color: #008000"><br /> </span><span style="color: #008080">23</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">            date </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #0000ff">new</span><span style="color: #000000"> Date();   </span><span style="color: #008000">//</span><span style="color: #008000"> Wed sep 26 18 17:14:01 CST 2007       </span><span style="color: #008000"><br /> </span><span style="color: #008080">24</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">            str </span><span style="color: #000000">=</span><span style="color: #000000"> format.format(date);  </span><span style="color: #008000">//</span><span style="color: #008000"> 2007-9-26    </span><span style="color: #008000"><br /> </span><span style="color: #008080">25</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">                        <br /> </span><span style="color: #008080">26</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            format </span><span style="color: #000000">=</span><span style="color: #000000"> DateFormat.getDateInstance(DateFormat.SHORT);    <br /> </span><span style="color: #008080">27</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            str </span><span style="color: #000000">=</span><span style="color: #000000"> format.format(date);  </span><span style="color: #008000">//</span><span style="color: #008000"> 07-9-26    </span><span style="color: #008000"><br /> </span><span style="color: #008080">28</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">                        <br /> </span><span style="color: #008080">29</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            format </span><span style="color: #000000">=</span><span style="color: #000000"> DateFormat.getDateInstance(DateFormat.MEDIUM);    <br /> </span><span style="color: #008080">30</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            str </span><span style="color: #000000">=</span><span style="color: #000000"> format.format(date);  </span><span style="color: #008000">//</span><span style="color: #008000"> 2007-9-26   </span><span style="color: #008000"><br /> </span><span style="color: #008080">31</span><span style="color: #008000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000">                        <br /> </span><span style="color: #008080">32</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            format </span><span style="color: #000000">=</span><span style="color: #000000"> DateFormat.getDateInstance(DateFormat.FULL);    <br /> </span><span style="color: #008080">33</span><span style="color: #000000"><img src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" alt="" />            str </span><span style="color: #000000">=</span><span style="color: #000000"> format.format(date);  </span><span style="color: #008000">//</span><span style="color: #008000"> 2007騫?鏈?6鏃?nbsp;鏄熸湡涓?nbsp;  </span></div> <img src ="http://www.aygfsteel.com/tigershi10/aggbug/148385.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/tigershi10/" target="_blank">ILOVEYOU</a> 2007-09-26 17:17 <a href="http://www.aygfsteel.com/tigershi10/archive/2007/09/26/148385.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>ENCTYPE="multipart/form-data"http://www.aygfsteel.com/tigershi10/archive/2007/09/13/144718.htmlILOVEYOUILOVEYOUThu, 13 Sep 2007 01:53:00 GMThttp://www.aygfsteel.com/tigershi10/archive/2007/09/13/144718.htmlhttp://www.aygfsteel.com/tigershi10/comments/144718.htmlhttp://www.aygfsteel.com/tigershi10/archive/2007/09/13/144718.html#Feedback4http://www.aygfsteel.com/tigershi10/comments/commentRss/144718.htmlhttp://www.aygfsteel.com/tigershi10/services/trackbacks/144718.html

鐢ㄤ簬琛ㄥ崟閲屾湁鍥劇墖涓婁紶銆?/p>

<form name="userInfo" method="post" action="first_submit.jsp"   ENCTYPE="multipart/form-data">
琛ㄥ崟鏍囩涓緗甧nctype="multipart/form-data"鏉ョ‘淇濆尶鍚嶄笂杞芥枃浠剁殑姝g‘緙栫爜銆?br /> 濡備笅錛?br /> <tr>
     <td height="30" align="right">涓婁紶鍥劇墖錛?lt;/td>
     <td><INPUT TYPE="FILE" NAME="uploadfile" SIZE="34"   onChange="checkimage()"></td>
   </tr>
灝卞緱鍔燛NCTYPE="multipart/form-data"銆?/p>

琛ㄥ崟涓璭nctype="multipart/form-data"鐨勬剰鎬濓紝鏄緗〃鍗曠殑MIME緙栫爜銆傞粯璁ゆ儏鍐碉紝榪欎釜緙栫爜鏍煎紡鏄痑pplication/x-www-form-urlencoded錛屼笉鑳界敤浜庢枃浠朵笂浼狅紱鍙湁浣跨敤浜唌ultipart/form-data錛屾墠鑳藉畬鏁寸殑浼犻掓枃浠舵暟鎹紝榪涜涓嬮潰鐨勬搷浣?
enctype=\"multipart/form-data\"鏄笂浼犱簩榪涘埗鏁版嵁; form閲岄潰鐨刬nput鐨勫間互2榪涘埗鐨勬柟寮忎紶榪囧幓銆?br /> form閲岄潰鐨刬nput鐨勫間互2榪涘埗鐨勬柟寮忎紶榪囧幓錛屾墍浠equest灝卞緱涓嶅埌鍊間簡銆?涔熷氨鏄鍔犱簡榪欐浠g爜,鐢╮equest灝變細浼犻掍笉鎴愬姛,
鍙栬〃鍗曞煎姞鍏ユ暟鎹簱鏃訛紝鐢ㄥ埌涓嬮潰鐨勶細
SmartUpload su = new SmartUpload();//鏂板緩涓涓猄martUpload瀵硅薄
su.getRequest().getParameterValues();鍙栨暟緇勫?
su.getRequest().getParameter( );鍙栧崟涓弬鏁板崟涓?/p>



ILOVEYOU 2007-09-13 09:53 鍙戣〃璇勮
]]>
struts 2 fileupload緇勪歡涓嬭澆鍦板潃http://www.aygfsteel.com/tigershi10/archive/2007/09/13/144705.htmlILOVEYOUILOVEYOUThu, 13 Sep 2007 01:38:00 GMThttp://www.aygfsteel.com/tigershi10/archive/2007/09/13/144705.htmlhttp://www.aygfsteel.com/tigershi10/comments/144705.htmlhttp://www.aygfsteel.com/tigershi10/archive/2007/09/13/144705.html#Feedback2http://www.aygfsteel.com/tigershi10/comments/commentRss/144705.htmlhttp://www.aygfsteel.com/tigershi10/services/trackbacks/144705.html 涓嬭澆鍦版柟涓?a >http://commons.apache.org/index.html

ILOVEYOU 2007-09-13 09:38 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 郑州市| 鸡东县| 安龙县| 怀来县| 东城区| 惠东县| 武功县| 恭城| 闸北区| 张家界市| 嘉兴市| 六枝特区| 巩留县| 昔阳县| 朝阳区| 崇文区| 五河县| 海南省| 平乡县| 抚宁县| 阜阳市| 淮安市| 灵武市| 三亚市| 突泉县| 达孜县| 岳阳县| 长丰县| 保山市| 灌云县| 汶川县| 文化| 栖霞市| 改则县| 江西省| 衡东县| 屏东市| 大城县| 浦城县| 湘潭市| 平和县|