Hibernate got its own website. If you look at the website, hibernate is grown big from just a ORM framework couple of years back. Last week hibernate has released its latest version 4.3.0. The main theme for this release is the support for JPA 2.1 (JSR 338) specification. The following are some of the notable …
Struts 2 Tutorials
Apache Struts 2 is another popular Model – View – Controller (MVC) framework from the Apache foundation. Since the inception of Struts 1, it is one of the most popular framework used by the Java developers. Struts 2 enhances the functionality to latest trend in the web applications development like AJAX, Annotations, etc. with simplified …
Spring 4 Tutorial
This page is regularly updated with the latest information about the Spring 4 framework. It is the most recent stable release for the production applications. Please bookmark this page to have up-to-date information on Spring Framework 4.0 happenings. If you want to add Spring 4 related links or information here, please send to krishnas at …
How To Change Tomcat Default Port Configuration?
Tomcat uses by default on port number 8080 on your computer. It is very common that you would have conflict of port number if there is another service running on the same port. You can change the port number for your tomcat server by changing in the configuration file or through the eclipse editor. 1. …
PrimeFaces : String Input Elements
In our previous primefaces tutorials, we saw installation setup and some dataInput components. In this tutorial, we will work on String Input components like autoComplete (for suggestions), inputMask (Constrained String Input), colorPicker (HTML color chooser), inplace (editable when clicked) and editor. 1. p:autoComplete Overview It’s appearance is like a textfield with dropdown of suggested completions. And …
Struts 2 + Log4j Integration
This example demonstrates how to integrate log4j to your struts 2 project. Add log4j.jar file in your project lib folder Create log4j.xml file with loggers and appenders. Here I have added file and console appenders. Each log message will be printed in console and a file. Make sure that log4j.xml file is in the classpath. …
HttpServletContext in Struts 2 Action Class
There are two ways to get the servlet context object inside struts 2 action class’s execute method. ServletActionContext : Directly accessing the getContext method from the ServletActionContext class will return the context object. ServletContextAware : If you implement the action class with ServletContextAware interface, then struts controller will send the context object through setServletContext method. …
HttpServletResponse in Struts 2 Action Class
There are two ways to get the servlet response object inside struts 2 action class’s execute method. ServletActionContext : Directly accessing the getresponse method from the ServletActionContext class will return the response object. ServletResponseAware : If you implement the action class with ServletResponseAware interface, then struts controller will send the response object through setServletResponse method. …