Java EE Tutorials JSP Tutorials Recommended Books for Java Server Pages (JSP) What is JSP? Java Server Pages or as is normally called JSP is a Java based technology that simplifies the developing of dynamic web sites. It is a technology developed by Sun Microsystems, back in 1999. JSP pages are HTML pages with embedded …
Java EE
TypedQuery in JPA 2
One of the new feature introduced in JPA 2.0 is using the TypedQuery interface for building the query. This can be used with the CriteriaBuilder in JPA 2. As the name itself specifies, the main purpose of using the TypedQuery would be to narrow the result type and eliminate the need for type casting after …
JPA 2.0 New Features
Java Persistance API (JPA) is the object relational mapping (ORM) specification for Java EE applications. It is only the specification, every framework owners can implement their own persistence layer following the JPA specification. Standardizing three major competing vendors of ORM technologies, Hibernate, JDO and Toplink, into one standard is the JPA 1.0 specification. JPA 1.0 …
JAX-RS : RESTful Webservice using JAX-RS 2.0
In this tutorial I am going to explain how to develop restful web services in java using the opensource JAX-RS 2.0 APIs. Also explains how to write JAX-RS 2.0 client API for invoking the JAX-RS 2.0 web services. In my previous post I wrote about using JAXB to marshall and unmarshal XML data and in that …
How To Write Custom Tag in JSP?
1. Introduction to JSP Custom Tag A custom tag is a user define JSP element. It is very useful in JSP programming for the programmers to write their own custom components for their projects. These custom tags can be re-used in many places without modification of code. In the latest trend of web development, very …
Deployment Descriptor in Different Servlet Versions
Servlet specifications evolved over the period of time. There is lot of improvements has been added to the web deployment descriptor as part of the new versions. It is important for the Java developers to understand the new elements in the web.xml and utilize the added features. In this tutorial I will summarize the sample snippet …
Bean Validation in Java EE 7 – Creating Custom Constraints and Validations
In my previous post I showed how one can make use of the default constraints provided by the Bean Validation API in validatng the model data. Bean Validation API allows the developers to define their own constraints by creating a new annotation and writing the validator which is used to validate the value. In this …
Bean Validation 1.1 in Java EE 7 – Using Default Constraints
Bean Validation 1.1 (JSR 349) is integrated as part of Java EE 7. The new features of Bean Validation 1.1 are as follows: Applying constraints on method parameters and return values. This can be used in creating a pre and post condition contract. Constraints can be applied to constructors. New API to obtain metadata of …