In this section, we are going to describe the append tag. The append tag is a generic tag that is used to merge multiple iterators into one iterator. Append Iterator Tag is used to append iterators to form an appended iterator through which the entries goes from one iterator to another after each respective iterator is exhausted of entries. Add the following code snippet into the struts.xml file. struts.xml: <action name="AppendTag" class="net.struts.AppendTag"> <result>/pages/genericTags/AppendTag.jsp</result> </action> Create two lists in the action class and populate them with various items as shown in the " AppendTag " class. AppendTag.java package net.stuts2-example; import com.opensymphony.xwork2.ActionSupport; import java.util.*; public class AppendTag extends ActionSupport{ private List myList; private List myList1; ...
Archive of Struts 2 examples with tag, script. This is the best tutorial of struts 2 framework.