Struts Framework Archive

Struts 2 Exception Handling

In this chapter we will learn about the exception handling in struts2 framework. If any exception occur between the code it redirected to the dedicated page whatever you define or map into the configuration file …

Themes in Struts 2

When you use a Struts 2 tag such as s:select in your web page, the Struts 2 framework generates HTML that styles the appearance and controls the layout of the select control. The style and …

Struts2 Validation With Example

Introduction to Struts2 Validation Framework Struts Action 2 relies on a validation framework provided by XWork to enable the application of input validation rules to your Actions before they are executed. Struts2 Validation Framework allows …

Struts 2 Database Access

In this chapter we will teach you how to access a database using Struts 2 in simple steps. Struts is a MVC framework and not a database framework but it provides excellent support for JPA/Hibernate …

Struts 2 File Upload Example

In this example you will learn how to do file upload with the help of the built-in FileUploadInterceptor. To do this first we need to get the file form the user. We use the Struts …