Introduction This tutorial shows an example on how MVC (Model, View, Controller) works in Spring framework. In this tutorial you will also find how JDBC (Java Database Connectivity API) works with Spring MVC. We will also see how annotation like @Autowired works in Spring. You will also see how datasource is configured in Spring. This…

Posted in Spring JDBC Spring MVC

Spring MVC and Spring JDBC Example

Introduction Here I will tell you about the transaction management in Spring framework. I will later also show you with examples how programmatic and declarative transaction management happen in Spring framework. A transaction is a logical unit of work that contains one or more statements with the following features: A transaction is an atomic unit….

Posted in Spring Transaction

Transaction Management in Spring

This tutorial shows an example on declarative transaction management in Spring framework. You may also want to know about Spring Transaction or Declarative Transaction management in Spring. Here I will create annotation based Spring stand alone and Spring Boot applications to create Declarative Transaction Management example in Spring framework. Here I will use H2 in-memory…

Posted in Spring Transaction

Declarative Transaction Management Example in Spring

In this tutorial I will show an example on programmatic transaction management in Spring. If you want to read about Spring Transaction or Programmatic Transaction management then you can read Transaction management in Spring. Here I will show annotation based Spring stand alone application approach and Spring Boot application to create Programmatic Transaction Management example…

Posted in Spring Transaction

Programmatic Transaction Management Example in Spring

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…

Posted in Struts

Multiple namespaces example in Struts 2

Introduction File Upload is one of the common tasks of a web application and Struts 2 provides built-in feature for single file upload through FileUploadInterceptor. Interceptors are cross cutting concerns or common concerns like Logging. FileUploadInterceptor is configured in the struts-default package that we usually extend in Struts 2 package configuration. FileUploadInterceptor also provide options…

Posted in File Upload Struts

Single file upload example in struts 2

Introduction File Upload is one of the common tasks of a web application and Struts 2 provides built-in feature for multiple files upload through FileUploadInterceptor. Interceptors are cross cutting concerns or common concerns like Logging. FileUploadInterceptor is configured in the struts-default package that we usually extend in Struts 2 package configuration. FileUploadInterceptor also provide options…

Posted in File Upload Struts

Multiple Files Upload example in Struts 2

Introduction In this tutorial I will show how to create effective pagination example in jsf 2, hibernate and in-memory database – hsqdb . In memory database like hsqldb is good when you want to do some quick POC or testing the application without setting up a large database. There are lots of built-in API for…

Posted in JSF

Effective pagination example in jsf 2

Introduction Here you will see file upload example in JSF 2. The file upload implementation in Java based web application is very complex and you need to be dependent on Apache file upload libraries. When you work on JSF(Java Server Faces), you have JSF (Java Faces Server) pages with other inputs along with file inputs…

Posted in File Upload JSF

File Upload Example in JSF 2

Introduction This tutorial shows how to use ValueChangeListener to create dependent dropdown in JSF 2 and MySQL. I have used here JSF 2’s valueChangeListener which fires value change event when select option dropdown gets changed. Any component that receives user input, such as one of the HTML select or text input components, can publish value…

Posted in JSF

ValueChangeListener example in JSF 2

In this tutorial I will show step-by-step how to create a Liferay plugin project. This plugin project is all about creating webservice in liferay. Prerequisites Liferay Developer Studio 1.4, Liferay 6

Posted in Java

Creating Liferay webservice project

In this post I will show how to call plugin webservice remotely. If we have wsdl file then we can generate the client or stub from wsdl file and invoke the operations/methods of the service. Before reading this post I would suggest please go through Creating Liferay plugin webservice project

Posted in Java

Accessing Liferay webservices remotely