Struts Framework Archive

Struts 2 param Tag Example

In this tutorial, We will discuss about the param tag in struts 2. This tag can be used to parameterize other tags. The parameters can be added with or without a name as key. when …

Struts 2 Include Tag Example

In this section, we are going to describe the include tag. The include tag is a generic tag that is used to include a servlet’s output (result of servlet or a JSP page) to the …

a tag example in Struts2

Struts 2 “a” tag is used to render a HTML “<a>” tag. The best practice is always use “<s:url>” tag to create the URL and embed it into the “a” tag. Create Action class: DataTagAction.java …

Struts 2 Data Tags

In this section, we will discuss about the data tags (generic tags) provided with struts 2 framework . Struts 2 Data tags, help to get the data from the ValueStack, or place the data into …

Struts2 subset Tag Example

The subset tag is a generic tag is used to output a subset or portion of an iterator elements. The following Example will shows how to implement the subset tag in the Struts2.  First we …

Struts2 sort Tag Example

In this tutorial, we will discuss about sort tag. The sort tag is used to sort a List using a java.util.Comparator. List and Comparator both passed in as the tag attribute. First we create a …