How to convert the spring checkbox tag to struts2 checkbox?

后端 未结 1 1297
日久生厌
日久生厌 2021-01-24 21:03

I have a problem while converting the spring check box tag to struts...
I have checkbox tag written in spring which i need to convert it into struts using the values comin

相关标签:
1条回答
  • 2021-01-24 22:00

    Migrating from SpringMVC(+JSTL) to Struts 2:

      • Spring MVC checkbox :

        <form:checkbox/>
        
      • Struts 2 checkbox :

        <s:checkbox/>
        
      • Single CHECKBOX example

      • Spring MVC multiple checkboxes :

        <form:checkboxes/>
        
      • Struts 2 multiple checkboxes :

        <s:checkboxList/>
        
      • multiple CHECKBOXES example

      • JSTL forEach :

        <c:forEach>
        
      • Struts 2 Iterator :

        <s:iterator>
        
      • ITERATOR example

      • JSTL WHEN and OTHERWISE:

        <c:when>
           <!-- stuff -->
        </c:when>
        <c:otherwise>
           <!-- stuff -->
        </c:otherwise>
        
      • Struts 2 IF and ELSE :

        <s:if>
           <!-- stuff -->
        </s:if>
        <s:else>
           <!-- stuff -->
        </s:else>
        
      • IF ELSE example

    0 讨论(0)
提交回复
热议问题