`
k_lb
  • 浏览: 800026 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论
  • kitleer: 据我所知,国内有款ETL调度监控工具TaskCTL,支持ket ...
    kettle调度

JSTL标签和Struts标签的对应参照(转)

 
阅读更多
  1. <bean:cookieid="category"name="cat"/>
  2. 替换
  3. <c:setvar="category"value="${cookie[''cat''].value}"/>
  4. -------------------------------------------
  5. <bean:define="name"value="ObjName"/>
  6. 替换
  7. <c:setvar="name"value="${ObjName}"/>
  8. -------------------------------------------
  9. <bean:headerid="browser"name="User-Agent"/>
  10. 替换
  11. <c:setvar="browser"value="${header[''User-Agent'']}"/>
  12. -------------------------------------------
  13. <bean:includeid="yahooContents"href="http://www.yahoo.com/"/>
  14. 替换
  15. <c:importvar="yahooContents"url="http://www.yahoo.com/"/>
  16. --------------------------------------------
  17. <bean:parameterid="color"name="clr"/>
  18. 替换
  19. <c:setvar="color"value="${param[''clr'']}"/>
  20. --------------------------------------------
  21. <bean:writename="ObjName"/>
  22. 替换
  23. <c:outvalue="${ObjName}"/>
  24. --------------------------------------------
  25. <logic:emptyname="results"/>
  26. Yourvalueisempty
  27. </logic>
  28. 替换
  29. <c:iftest="${emptyresults}">
  30. Yourvalueisempty
  31. </c:if>
  32. --------------------------------------------
  33. <logic:equalname="val"value="0">
  34. val=0
  35. </logic:equal>
  36. 替换
  37. <c:iftest="${value==0}">
  38. val=0
  39. <c:if>
  40. --------------------------------------------
  41. <logic:greaterEqualname="count"value="5">
  42. Countisgreaterthanorequaltofive
  43. </logic:greaterEqual>
  44. 替换
  45. <c:iftest="${count>=5}">
  46. Countisgreaterthanorequaltofive
  47. </c:if>
  48. --------------------------------------------
  49. <logic:iterateid="result"collection="<%=results%>">
  50. Result:<%=result%><bt>
  51. </logic:iterate>
  52. 替换
  53. <c:forEachvar="result"items="${results}">
  54. Result:<c:outvalue="${result}"/>
  55. </c:forEach>
  56. --------------------------------------------
  57. <logic:notEmptyname="results">
  58. Resultsisnotempty
  59. </logic:notEmpty>
  60. 替换
  61. <c:iftest="${!emptyresults}">
  62. Resultsisnotempty
  63. </c:if>
  64. ---------------------------------------------
  65. <logic:notEqualname="count"value="0">
  66. Countisnotequaltozero
  67. </logic:notEqual>
  68. 替换
  69. <c:iftest="${count!=0}">
  70. Countisnotequaltozero
  71. </c:if>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics