posts - 7,  comments - 4,  trackbacks - 0
            2007年10月15日
          分頁(yè)弄好了,還不夠完善。。

          ######EL表達(dá)式讀取屬性

          class A{
          ??? public int getNext(){
          ??? ?? return 1;
          ??? }
          }

          request.setAttribute("a",new A);
          ${a.next }

          #########logic的用法

          <logic:equal name="testForm" property="paginationInfo.hasNext" value="true">
          <logic:equal name="testForm" property="paginationInfo.currentPageNumber" value="1">

          #########param
          reqeust.getParameter("page") ${param.page}
          reqeust.getAttribute("page") ${page}
          posted @ 2007-10-18 23:31 神的小火柴 閱讀(180) | 評(píng)論 (0)編輯 收藏
          主鍵生成方式
          使用存儲(chǔ)過(guò)程
          完整的配置方式
          posted @ 2007-10-18 14:13 神的小火柴 閱讀(173) | 評(píng)論 (0)編輯 收藏
          spring 配置要點(diǎn)
          http://wiki.springside.org.cn/display/springside/Spring+Distill

          Selenium指南
          http://wiki.springside.org.cn/display/springside/Selenium

          springside
          http://wiki.springside.org.cn/display/springside/Home

          posted @ 2007-10-17 01:22 神的小火柴 閱讀(185) | 評(píng)論 (0)編輯 收藏
          ################
          <div></div>
          <div style="clear:both;" />
          <div></div>
          這樣可以讓第一個(gè)div和第二個(gè)div按從上到下排列。
          比f(wàn)loat:left麻煩點(diǎn),增加了不必要的div

          ###############
          Expression.eq("linkIsShow","true")
          這樣會(huì)導(dǎo)致錯(cuò)誤:java.lang.ClassCastException: java.lang.String

          正確的:
          Criteria criteria=this.getSession().createCriteria(BlogLinks.class);
          criteria.add(Expression.eq("linkIsShow",true));
          return criteria.list();

          今天主要要解決分頁(yè)的問(wèn)題。。
          錯(cuò)誤提示頁(yè)面。。

          #################
          奇怪的問(wèn)題。如果設(shè)置了setFetchSize()之后,不但不起作用。連addOrder()也沒(méi)用了。
          改用setMaxResults()之后,一切正常。
          Criteria criteria=this.getSession().createCriteria(BlogContent.class);
          criteria.addOrder(Order.desc("logId"));
          criteria.setFirstResult(0);
          criteria.setMaxResults(5);
          return criteria.list();

          ################
          <ul id="posts"><li></li></ul>

          這樣是錯(cuò)誤的:
          #content ul #posts{margin-bottom: 20px;}
          #content ul #posts li{margin-bottom: 36px;}

          這是正確的:
          #content ul#posts{margin-bottom: 20px;}
          #content ul#posts li{margin-bottom: 36px;}

          ################
          老是犯低級(jí)錯(cuò)誤

          HTML中<div>一定要這樣<div></div>
          這樣肯定出錯(cuò)<div/>,會(huì)自動(dòng)嵌套。。

          這個(gè)問(wèn)題搞得我莫名其妙了好久。。

          ###############
          這樣是錯(cuò)的。。

          <property name="phone" type="string">
          ??? <column name="PHONE" sql-type="varchar(8)"/>
          </property>
          posted @ 2007-10-15 13:03 神的小火柴 閱讀(246) | 評(píng)論 (0)編輯 收藏
          <2007年10月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          常用鏈接

          留言簿(1)

          隨筆分類(lèi)

          隨筆檔案

          文章分類(lèi)

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 神木县| 慈利县| 吴江市| 肇东市| 沙河市| 酒泉市| 沁阳市| 瑞安市| 涟源市| 保德县| 尖扎县| 灵川县| 新乐市| 吉林市| 南江县| 托克逊县| 楚雄市| 岚皋县| 武邑县| 澎湖县| 射阳县| 寿光市| 松江区| 崇义县| 东丽区| 汉沽区| 西充县| 洛阳市| 泗洪县| 尼木县| 开封市| 诏安县| 浑源县| 贵州省| 怀远县| 措美县| 平陆县| 济源市| 榆中县| 尚志市| 兴业县|