﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-happyking75-最新评论</title><link>http://www.blogjava.net/happyking75/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Fri, 22 Oct 2010 09:09:26 GMT</pubDate><lastBuildDate>Fri, 22 Oct 2010 09:09:26 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: “Windows已经阻止此软件因为无法验证发行者”的解决办法[未登录]</title><link>http://www.blogjava.net/happyking75/archive/2010/09/16/328328.html#332182</link><dc:creator>1</dc:creator><author>1</author><pubDate>Thu, 16 Sep 2010 06:52:00 GMT</pubDate><guid>http://www.blogjava.net/happyking75/archive/2010/09/16/328328.html#332182</guid><description><![CDATA[还是不行<img src ="http://www.blogjava.net/happyking75/aggbug/332182.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/happyking75/" target="_blank">1</a> 2010-09-16 14:52 <a href="http://www.blogjava.net/happyking75/archive/2010/09/16/328328.html#332182#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Struts2 checkboxlist 回显选中问题</title><link>http://www.blogjava.net/happyking75/archive/2010/06/02/284120.html#322581</link><dc:creator>逃去如飞</dc:creator><author>逃去如飞</author><pubDate>Wed, 02 Jun 2010 08:05:00 GMT</pubDate><guid>http://www.blogjava.net/happyking75/archive/2010/06/02/284120.html#322581</guid><description><![CDATA[我的问题解决了：<br>    将之前用checkboxlist选择得到的值，即一个字符串（这个字符串是由“,”连接而成的），用.split(&quot;,&quot;)分割得到一个字符串数组String[] temps，最好对其每个元素用.trim()遍历，以去掉可能存在的空格。<br>    然后执行下面这两条语句：<br>HttpServletRequest request = ServletActionContext.getRequest();<br>request.setAttribute(&quot;abc&quot;,temps);<br>   以上是action中的处理，对temps不需要另加setter/getter方法。<br>  在JSP页面，checkboxlist的value值为：value=&quot;#request.abc&quot;。<br>  这样就OK了，checkbox就能回显选中了。<br>  借地分享一点小经验，希望对大家有帮助，嘿嘿。<img src ="http://www.blogjava.net/happyking75/aggbug/322581.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/happyking75/" target="_blank">逃去如飞</a> 2010-06-02 16:05 <a href="http://www.blogjava.net/happyking75/archive/2010/06/02/284120.html#322581#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Struts2 checkboxlist 回显选中问题[未登录]</title><link>http://www.blogjava.net/happyking75/archive/2010/05/31/284120.html#322367</link><dc:creator>李</dc:creator><author>李</author><pubDate>Mon, 31 May 2010 09:35:00 GMT</pubDate><guid>http://www.blogjava.net/happyking75/archive/2010/05/31/284120.html#322367</guid><description><![CDATA[为什么我只能显示第一个啊？<img src ="http://www.blogjava.net/happyking75/aggbug/322367.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/happyking75/" target="_blank">李</a> 2010-05-31 17:35 <a href="http://www.blogjava.net/happyking75/archive/2010/05/31/284120.html#322367#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Struts2 checkboxlist 回显选中问题</title><link>http://www.blogjava.net/happyking75/archive/2010/05/13/284120.html#320930</link><dc:creator>逃去如飞</dc:creator><author>逃去如飞</author><pubDate>Thu, 13 May 2010 14:16:00 GMT</pubDate><guid>http://www.blogjava.net/happyking75/archive/2010/05/13/284120.html#320930</guid><description><![CDATA[你好，我用的就是这种方法，可是回显不出来，value=“temps”，temps是一个字符串数组，回显时，只能显示数组的第一个值，不明白为什么，急于请教<img src ="http://www.blogjava.net/happyking75/aggbug/320930.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/happyking75/" target="_blank">逃去如飞</a> 2010-05-13 22:16 <a href="http://www.blogjava.net/happyking75/archive/2010/05/13/284120.html#320930#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>