Struts2 Tiles Integration

Introduction For any Web application with a sizeable number of application screens it is essential to have a design which promotes page reuse and screen composition flexibility. There are two common patterns used for maximizing reuse when similar application screens are built; Decorator pattern and Composite view pattern. Apache Tiles  is a composite view pattern [...]

November 28, 2011 | Posted in Tutorials | No Comments »

Developing Struts2 Applications Using Eclipse, M2Eclipse Plugin and Maven

In this step by step tutorial I will show you how Eclipse IDE, M2Eclipse Plugin and Maven can be used to develop Struts 2 Web applications. In order to create and run Struts 2 Maven projects in Eclipse, you need to download the following, Eclipse IDE – Eclipse Indigo 3.7.1 or higher for Java EE [...]

November 27, 2011 | Posted in Tutorials | 1 Comment »

How to Run Struts 2 Maven Projects in NetBeans

In an earlier tutorial I covered how Struts 2 projects can be created using Maven. In this tutorial I will show you how you can run Struts 2 Maven projects in NetBeans IDE. For this tutorial, I will be using Maven 3, Struts 2 2.2.3.1 and NetBeans 7.0.1. Pre-requisites This tutorial requires Oracle JDK 1.6 [...]

November 26, 2011 | Posted in Tutorials | No Comments »

Developing Struts2 Applications Using Maven 3

Introduction to Maven Maven is a project management/build manager tool for Java projects. Using Maven you can capture library dependencies and other project properties in a file named pom.xml. POM stands for Project Object Model and it contains project dependencies, various project build phases and repository information for the project and its dependencies. For building [...]

| Posted in Tutorials | 1 Comment »

Struts2 Upload File Example

Introduction to Struts2 File Upload Struts2 has built in features for uploading a file to a server using multipart servlet request (known as form based file upload defined in RFC 1867). Struts2 provides a specific interceptor (file upload interceptor) for handling file uploads. This interceptor will provide an instance of the uploaded File object to [...]

October 26, 2011 | Posted in Tutorials | No Comments »

Developing Struts2 Applications Using NetBeans

Struts2 is a highly extensible and modular Java based MVC web application framework. It substantially reduces the effort and time required to build large enterprise web applications. Various Java development environments such as Eclipse, NetBeans etc. can be used to build web applications using Struts2. This article is a step by step guide on building [...]

October 18, 2011 | Posted in Tutorials | 1 Comment »