<bdo id='DB7TW'></bdo><ul id='DB7TW'></ul>

    1. <small id='DB7TW'></small><noframes id='DB7TW'>

      <i id='DB7TW'><tr id='DB7TW'><dt id='DB7TW'><q id='DB7TW'><span id='DB7TW'><b id='DB7TW'><form id='DB7TW'><ins id='DB7TW'></ins><ul id='DB7TW'></ul><sub id='DB7TW'></sub></form><legend id='DB7TW'></legend><bdo id='DB7TW'><pre id='DB7TW'><center id='DB7TW'></center></pre></bdo></b><th id='DB7TW'></th></span></q></dt></tr></i><div id='DB7TW'><tfoot id='DB7TW'></tfoot><dl id='DB7TW'><fieldset id='DB7TW'></fieldset></dl></div>

      <legend id='DB7TW'><style id='DB7TW'><dir id='DB7TW'><q id='DB7TW'></q></dir></style></legend>
      <tfoot id='DB7TW'></tfoot>

        如何使用 Struts 2 标签迭代 Set 元素

        How to iterate Set elements using Struts 2 tags(如何使用 Struts 2 标签迭代 Set 元素)
          <tbody id='Weadf'></tbody>
        <tfoot id='Weadf'></tfoot>
        • <bdo id='Weadf'></bdo><ul id='Weadf'></ul>
          <legend id='Weadf'><style id='Weadf'><dir id='Weadf'><q id='Weadf'></q></dir></style></legend>

            <small id='Weadf'></small><noframes id='Weadf'>

                <i id='Weadf'><tr id='Weadf'><dt id='Weadf'><q id='Weadf'><span id='Weadf'><b id='Weadf'><form id='Weadf'><ins id='Weadf'></ins><ul id='Weadf'></ul><sub id='Weadf'></sub></form><legend id='Weadf'></legend><bdo id='Weadf'><pre id='Weadf'><center id='Weadf'></center></pre></bdo></b><th id='Weadf'></th></span></q></dt></tr></i><div id='Weadf'><tfoot id='Weadf'></tfoot><dl id='Weadf'><fieldset id='Weadf'></fieldset></dl></div>
                • 本文介绍了如何使用 Struts 2 标签迭代 Set 元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有两个Sets

                  set1  contains("A","B","C","D") elements
                  set2  contains("E","F","D","G") elements
                  

                  我想将 set1 的每个元素与 set2 的每个元素进行比较,并使用 Struts2 标签显示匹配的元素.

                  I want to compare every element of set1 with every element of set2 and display matched elements using Struts2 tags.

                  推荐答案

                  试试下面的代码:

                  <s:iterator var="val1" value="set1">
                   <s:iterator var="val2" value="set2">
                    <s:if test="#val1 == #val2">
                     <s:property /><br>
                    </s:if>
                   </s:iterator>
                  </s:iterator>
                  

                  这篇关于如何使用 Struts 2 标签迭代 Set 元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)
                  <legend id='Wk0mJ'><style id='Wk0mJ'><dir id='Wk0mJ'><q id='Wk0mJ'></q></dir></style></legend>

                  <small id='Wk0mJ'></small><noframes id='Wk0mJ'>

                  • <tfoot id='Wk0mJ'></tfoot>

                    • <i id='Wk0mJ'><tr id='Wk0mJ'><dt id='Wk0mJ'><q id='Wk0mJ'><span id='Wk0mJ'><b id='Wk0mJ'><form id='Wk0mJ'><ins id='Wk0mJ'></ins><ul id='Wk0mJ'></ul><sub id='Wk0mJ'></sub></form><legend id='Wk0mJ'></legend><bdo id='Wk0mJ'><pre id='Wk0mJ'><center id='Wk0mJ'></center></pre></bdo></b><th id='Wk0mJ'></th></span></q></dt></tr></i><div id='Wk0mJ'><tfoot id='Wk0mJ'></tfoot><dl id='Wk0mJ'><fieldset id='Wk0mJ'></fieldset></dl></div>

                        • <bdo id='Wk0mJ'></bdo><ul id='Wk0mJ'></ul>
                            <tbody id='Wk0mJ'></tbody>