??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲色无码国产精品网站可下载,久久亚洲日韩看片无码,亚洲处破女AV日韩精品http://m.tkk7.com/vip01/category/21785.html用优雅的设计解决丑陋的问?/description>zh-cnFri, 03 Dec 2010 10:25:32 GMTFri, 03 Dec 2010 10:25:32 GMT60原创技巧解决list做strtus2标签checkboxlist默认值无法选中的问?/title><link>http://m.tkk7.com/vip01/archive/2010/12/02/339602.html</link><dc:creator>交U赞</dc:creator><author>交口U赞</author><pubDate>Thu, 02 Dec 2010 06:09:00 GMT</pubDate><guid>http://m.tkk7.com/vip01/archive/2010/12/02/339602.html</guid><wfw:comment>http://m.tkk7.com/vip01/comments/339602.html</wfw:comment><comments>http://m.tkk7.com/vip01/archive/2010/12/02/339602.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://m.tkk7.com/vip01/comments/commentRss/339602.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/vip01/services/trackbacks/339602.html</trackback:ping><description><![CDATA[<span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">用struts2的标{checkboxlist可以很方便的用生成checkboxl?但是让其默认选中指定checkbox却是非常ȝ(ch).</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">之前?U方?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">W一U是修改struts2 tag的源代码.</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">比如http://jolestar.javaeye.com/blog/160360</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">W二U就是彻底妥?在action里面把list bean转成数组,赋给checkboxlist的value属?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">q两Usolution都不是那么优?作ؓ(f)一个有房贷没希望的IT民工我不问自己:</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">怎么能对自己的要求这么低? 怎么能应付了(jin)事呢?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">L?研究?jin)下ognl的语?l于让我扑ֈ?jin)一U方便的写法.</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">JavaBean</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span> <div id="tbx39fx" class="dp-highlighter" style="font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Consolas, 'Courier New', monospace; font-size: 12px; background-color: transparent; width: 766px; overflow-x: auto; overflow-y: auto; margin-left: 9px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; word-break: break-all; word-wrap: break-word; line-height: 18px; "> <ol start="1" class="dp-j" style="font-size: 1em; line-height: 1.4em; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #d1d7dc; border-right-color: #d1d7dc; border-bottom-color: #d1d7dc; border-left-color: #d1d7dc; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-color: #ffffff; color: #2b91af; "> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span id="3v9ltdv" class="keyword" style="color: #7f0055; font-weight: bold; ">public</span><span style="color: black; "> </span><span id="1h39rrp" class="keyword" style="color: #7f0055; font-weight: bold; ">class</span><span style="color: black; "> Operate </span><span id="z9hp93n" class="keyword" style="color: #7f0055; font-weight: bold; ">extends</span><span style="color: black; "> BaseBean {  </span></span></li> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; ">    <span id="3d9hbft" class="keyword" style="color: #7f0055; font-weight: bold; ">private</span><span style="color: black; "> </span><span id="1vb3nlb" class="keyword" style="color: #7f0055; font-weight: bold; ">long</span><span style="color: black; "> id;  </span></span></li> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; ">    <span id="pz3x3x9" class="keyword" style="color: #7f0055; font-weight: bold; ">private</span><span style="color: black; "> String name;  </span></span></li> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; ">}  </span></li> </ol> </div> <span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">Action中初始化allOpList和myOpList.</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span> <div id="1t933l9" class="dp-highlighter" style="font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Consolas, 'Courier New', monospace; font-size: 12px; background-color: transparent; width: 766px; overflow-x: auto; overflow-y: auto; margin-left: 9px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; word-break: break-all; word-wrap: break-word; line-height: 18px; "> <ol start="1" class="dp-j" style="font-size: 1em; line-height: 1.4em; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #d1d7dc; border-right-color: #d1d7dc; border-bottom-color: #d1d7dc; border-left-color: #d1d7dc; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-color: #ffffff; color: #2b91af; "> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span id="v993rtd" class="keyword" style="color: #7f0055; font-weight: bold; ">private</span><span style="color: black; "> List<Operate> myOpList;  </span></span></li> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span id="hznbhn3" class="keyword" style="color: #7f0055; font-weight: bold; ">private</span><span style="color: black; "> List<Operate> allOpList;  </span></span></li> </ol> </div> <span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">前台jsp用strtus2标签生成checkboxlist</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span> <div id="r3x9r9v" class="dp-highlighter" style="font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Consolas, 'Courier New', monospace; font-size: 12px; background-color: transparent; width: 766px; overflow-x: auto; overflow-y: auto; margin-left: 9px; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; word-break: break-all; word-wrap: break-word; line-height: 18px; "> <ol start="1" class="dp-xml" style="font-size: 1em; line-height: 1.4em; margin-top: 0px; margin-right: 0px; margin-bottom: 1px; margin-left: 0px; padding-top: 2px; padding-right: 0px; padding-bottom: 2px; padding-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #d1d7dc; border-right-color: #d1d7dc; border-bottom-color: #d1d7dc; border-left-color: #d1d7dc; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-color: #ffffff; color: #2b91af; "> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span id="9r9b9b3" class="tag" style="color: #006699; font-weight: bold; "><</span><span id="d9vtzh3" class="tag-name" style="color: #006699; font-weight: bold; ">s:checkboxlist</span><span style="color: black; "> </span><span id="3393bl3" class="attribute" style="color: red; ">name</span><span style="color: black; ">=</span><span id="blxz3xz" class="attribute-value" style="color: blue; ">"myOpList.id"</span><span style="color: black; "> </span><span id="33hj1tb" class="attribute" style="color: red; ">list</span><span style="color: black; ">=</span><span id="99rdjlv" class="attribute-value" style="color: blue; ">"allOpList"</span><span style="color: black; "> </span><span id="xrtflj9" class="attribute" style="color: red; ">listValue</span><span style="color: black; ">=</span><span id="r3d9hn9" class="attribute-value" style="color: blue; ">"name"</span><span style="color: black; ">  </span><span id="x1333t9" class="attribute" style="color: red; ">listKey</span><span style="color: black; ">=</span><span id="nv3j9d9" class="attribute-value" style="color: blue; ">"id"</span><span style="color: black; ">   </span></span></li> <li style="font-size: 1em; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 38px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-left-width: 1px; border-left-style: solid; border-left-color: #d1d7dc; background-color: #fafafa; line-height: 18px; "><span style="color: black; "><span id="t3l3x93" class="attribute" style="color: red; ">value</span><span style="color: black; ">=</span><span id="ttvfjph" class="attribute-value" style="color: blue; ">"myOpList.{#this.id}"</span><span id="ph9dr3p" class="tag" style="color: #006699; font-weight: bold; ">/></span><span style="color: black; ">  </span></span></li> </ol> </div> <span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">checkboxlist标签用allOpList的内容生成checkbox, q且用myOpList的值选中默认.</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">q且当页面提交的时?又能自动把checkbox的选中情况,赋给myOpList.Operate.id属?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">q样从后到前到再到后,全都是用list beand?用法l一,不要转换,全部操作的是bean而不是数l?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">_֍在于</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><span style="color: red; ">myOpList.{#this.id}</span></span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">q个ognl表达?自动生成[4, 11]q种格式的数l?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">引申一?ognl的语法强大到可以myOpList.{?#this.enable > 0}来做qo(h),看着有点Jquery的味?非常好用.</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">有同志会(x)?q种qo(h)没有什么意?不如在后台sql里面?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">假设一个应用场?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">全部用户信息是放在cache里面的list,Ҏ(gu)前一个页面来qo(h)男女,然后昄.</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">q时候这个过滤表辑ּ发挥作用了(jin),不用(zhn)在后台一个一个过滤重新组装list?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">userInfoist.{?#this.sex > 0}</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; ">z而优?q下能过自己q关?</span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "> </span><span style="font-family: Tahoma; font-size: 12px; line-height: 18px; "><br /> </span><br /> <font face="Tahoma" size="3"><span style="font-size: 12px; line-height: 18px;"><br /> </span></font> <img src ="http://m.tkk7.com/vip01/aggbug/339602.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/vip01/" target="_blank">交U赞</a> 2010-12-02 14:09 <a href="http://m.tkk7.com/vip01/archive/2010/12/02/339602.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>言l结者:(x)document.all真的是IE only吗?http://m.tkk7.com/vip01/archive/2007/08/13/136287.html交U赞交U赞Mon, 13 Aug 2007 01:51:00 GMThttp://m.tkk7.com/vip01/archive/2007/08/13/136287.htmlhttp://m.tkk7.com/vip01/comments/136287.htmlhttp://m.tkk7.com/vip01/archive/2007/08/13/136287.html#Feedback16http://m.tkk7.com/vip01/comments/commentRss/136287.htmlhttp://m.tkk7.com/vip01/services/trackbacks/136287.html阅读全文

交U赞 2007-08-13 09:51 发表评论
]]>
用struts标签做多语言国际?/title><link>http://m.tkk7.com/vip01/archive/2007/05/10/116421.html</link><dc:creator>交口U赞</dc:creator><author>交口U赞</author><pubDate>Thu, 10 May 2007 03:07:00 GMT</pubDate><guid>http://m.tkk7.com/vip01/archive/2007/05/10/116421.html</guid><wfw:comment>http://m.tkk7.com/vip01/comments/116421.html</wfw:comment><comments>http://m.tkk7.com/vip01/archive/2007/05/10/116421.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/vip01/comments/commentRss/116421.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/vip01/services/trackbacks/116421.html</trackback:ping><description><![CDATA[     摘要: 用struts标签做多语言国际?nbsp; <a href='http://m.tkk7.com/vip01/archive/2007/05/10/116421.html'>阅读全文</a><img src ="http://m.tkk7.com/vip01/aggbug/116421.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/vip01/" target="_blank">交U赞</a> 2007-05-10 11:07 <a href="http://m.tkk7.com/vip01/archive/2007/05/10/116421.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>struts2的myeclipse目http://m.tkk7.com/vip01/archive/2007/04/20/112109.html交U赞交U赞Fri, 20 Apr 2007 01:04:00 GMThttp://m.tkk7.com/vip01/archive/2007/04/20/112109.htmlhttp://m.tkk7.com/vip01/comments/112109.htmlhttp://m.tkk7.com/vip01/archive/2007/04/20/112109.html#Feedback0http://m.tkk7.com/vip01/comments/commentRss/112109.htmlhttp://m.tkk7.com/vip01/services/trackbacks/112109.html阅读全文

交U赞 2007-04-20 09:04 发表评论
]]>
վ֩ģ壺 Ļպ| Ůǿ߳վ | ŷۺһ| ĻӰԺww4164h| 77777_ҹþö| þþ99Ʒѹۿ| þþƷAV鶹| վ| Ʒþþþþ| Ѱββ8X | ޹Ů߹ۿ| ѹۿ| ¶ۺƵ| ŮëƬѲƵm| ޾Ʒ˳| xvideosַ| 99þѹƷ| ޾ƷƵ| ëƬѹۿ| ɫѿ| þҹɫƷav| þaѹۿ| 㽶߹ۿ| AëƬ߲Ųշ| ӰԺҹˬˬˬ| Ʒާv벥| **ëƬѹۿþþƷ| ŷպĻһ | þӰӹ| þùѹۿƷ3| ۺһ | ɫwwwƵ| ޶Ƶ˵ӰԺ| ڵƵ߹ۿ| ۺɫ߾Ʒ| ͵͵ͼƬ| ɫ7777Ƶ߹ۿ| պaëƬѹۿ| þþ뾫Ʒպý| ˿Ƶ2019| ĻѾþ9һ9 |