Tag Archives | struts

Struts Html Tags

This taglib contains tags used to create struts input forms, as well as other tags generally useful in the creation of HTML-based user interfaces. The tags in the Struts HTML library form a bridge between a JSP view and the other components of a Web application. Since a dynamic Web application often depends on gathering [...]

Continue Reading ... Comments { 0 }

Export to Excel, PDF, CSV , RTF and XML using Display tag

In this article we will show you how to export data as different formats in struts using display tags. To know more about Display Tag. The display tag library also helps in pagination, sorting and grouping of the data. First create a new Dynamic Web Project and configure it as Maven Project. For Reference, Click [...]

Continue Reading ... Comments { 1 }

Pagination and Sorting in Struts using Display Tag

In this article we will see how to paginate and sort large data in Struts using Display Tag. The display tag library also helps in grouping and exporting of the data. First create a new Dynamic Web Project and configure it as Maven Project. For Reference, Click Here Add the following dependencies in pom.xml Do [...]

Continue Reading ... Comments { 0 }

Struts Tiles

In this article you will learn the how to create views using Tiles Framewok of struts. In a Tiles application, the background, or layout, template usually defines the position of a header, menu body, content, and footer. Other pages are then included to fill each of these positions. If the header changes, then only that [...]

Continue Reading ... Comments { 2 }

Struts Custom Validation using validate method

In this article we will see how to do custom validation using validate method in Struts. First create a new Dynamic Web Project and configure it as Maven Project. For Reference, Click Here Add the following dependencies in pom.xml Do not forget to include maven dependencies in Eclipse IDE as shown in following link. 1. [...]

Continue Reading ... Comments { 1 }

Struts Validator Framework

In this article we will see how to use Validator Framework in Struts. These validations include generic validation (required), mask valdiation, email and date validation. First create a new Dynamic Web Project and configure it as Maven Project. For Reference, Click Here Add the following dependencies in pom.xml Do not forget to include maven dependencies [...]

Continue Reading ... Comments { 1 }

Struts Client Side Validation

In this article we will see client side validation in Struts. validator-rules.xml declares the validation routines and logical names are provided for the validations. If the validation fails when it run, the message(i.e. in ApplicationResources.properties) corresponding to the key specified by the msg attribute will be returned. First create a new Dynamic Web Project and [...]

Continue Reading ... Comments { 0 }

How to highlight errors in Struts

In this article we will see how to highlight errors in Struts. First create a new Dynamic Web Project and configure it as Maven Project. For Reference, Click Here Add the following dependencies in pom.xml Do not forget to include maven dependencies in Eclipse IDE as shown in following link. 1. Action Form Create a [...]

Continue Reading ... Comments { 0 }

Struts <logic:redirect> Tag

The <logic:redirect> tag renders an HTTP Redirect. It Performs an HttpServletResponse.sendRedirect() call to the hyperlink specified by the attributes to this tag. URL rewriting will be applied automatically, to maintain session state in the absence of cookies. The base URL for this redirect is calculated based on which of the following attributes you specify (you [...]

Continue Reading ... Comments { 0 }

Struts <logic:present> and <logic:notPresent> Tag

The <logic:present> tag generates the nested body content of this tag if the specified value is present in this request. Whereas <logic:notPresent> tag generates the nested body content of this tag if the specified value is not present in this request. In order to use the Struts HTML Tags you need to include the following [...]

Continue Reading ... Comments { 0 }