dinesh Archive

Struts 2 Date Tag Example

The date tag allows to format a Date in a quick and easy way. User can specify a custom format (eg. “dd/MM/yyyy hh:mm”), can generate easy readable notations (like “in 2 hours, 14 minutes”), or …

Struts 2 BeanTag Example

In this section, we are going to describe the Bean Tag. The Bean tag is a generic tag that is used to instantiates a class that confirms to the JavaBeans specification. This tag has a …

Struts 2 set Tag Example

In this tutorial, you will see the use of struts2 set tag. The set tag is a generic (Data) tag that is used to assign a value of property to another name in a specified …

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 …