深藍的天空下,有你有我...
          共享酸、甜、苦、辣
          posts - 23,comments - 19,trackbacks - 0
          <2025年8月>
          272829303112
          3456789
          10111213141516
          17181920212223
          24252627282930
          31123456

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          If care is not taken with the quoting of literals, the expression language (OGNL) will misinterpret a char as a String. Wrong: Why doesn't this work when myString is equal to A? The solution is simple: flip the double and single quotes. Right: This works! Another solution is to escape the double quotes in the String. Also Right: This works too! 來自官方的FAQ: http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html
          posted on 2009-10-05 10:55 三刀流の逆風 閱讀(794) 評論(1)  編輯  收藏 所屬分類: Struts

          FeedBack:
          # re: struts2的標簽如何判斷單個字符?(Why won't the 'if' tag evaluate a one char string)[未登錄]
          2012-02-23 13:45 | 鵬鵬
          <s:if test='caseCondition.caseGrade eq "C"'>checked="checked"</s:if>

          我試過了,這個寫法可以  回復  更多評論
            
          主站蜘蛛池模板: 滁州市| 浦东新区| 金溪县| 武汉市| 珠海市| 将乐县| 彭山县| 大埔区| 榆社县| 隆安县| 彰化县| 宿迁市| 丁青县| 崇礼县| 武夷山市| 博罗县| 伊吾县| 桓仁| 台南县| 筠连县| 巢湖市| 商水县| 中阳县| 大荔县| 富顺县| 马龙县| 灵山县| 那曲县| 绥化市| 锦屏县| 宜阳县| 融水| 崇左市| 洛浦县| 临江市| 瑞金市| 宜阳县| 治县。| 洛隆县| 册亨县| 信宜市|