Struts 2, Spring 4, Hibernate 4 and Maven Integration

In this tutorial I will show you how to integrate Struts 2, Spring 4, Hibernate 4 and Maven. In the previous example Integrate Spring 3, Struts 2 and Hibernate 3 , I have shown how to integrate Struts 2, Spring 3 and Hibernate 3 but I have not used maven there. For this tutorial we will create maven based web…

Google Chart using Struts 2

Introduction In this tutorial I will build Google chart using Struts 2; actually, it is a pie chart using Google chart API. The backend will be built on Struts 2 framework. The JSP page will be used for displaying data on Google pie chart.You might know that Google chart basically displays different statistical data on different chart types such as…

Sending Email with attachment using Struts2

This tutorial shows how to send email with an attachment. This tutorial uses one input form where a user gives input for ‘Recipient’s Email’ where the intended email will be sent, ‘Email Subject’, ‘Email Message’ and uploads one file which will be sent as an attachment with the email. This email sending example uses gmail smtp server to send the…

Multiple namespaces example in Struts 2

Introduction I will show you here how to create multiple namespaces in struts 2 web application. The benefit of namespace is the same file and action can be mapped to the multiple modules. The default namespace is “” – an empty string. A root namespace “/” is also supported. The namespace attribute subdivides action configurations into logical modules, each with…

Integrate struts 2 in Liferay portlet

Liferay is a Open Source Content Management System and it’s popularity increasing day by day¬† but there are no much tutorials on this. Sometimes we find some examples but it may not work exactly the way have been written in the websites. Sometimes the tutorial steps have not been started from the scratch and it results confusion. I am going…

Integrate Spring 3, Struts 2 and Hibernate 3

Introduction This tutorial shows how to integrate Spring 3, Struts 2 and Hibernate 3 in the following example. In this example, Struts 2 will be used as a web framework and Spring 3 will be used as a core service. We will use ORM (Object Relational Mapping) framework Hibernate for our persistent layer to interact with database. We are going…