Developing with Web Application Frameworks

JSP web application development in the NetBeans IDE
Click image for fullscreen preview

NetBeans IDE supports various Web application frameworks, including all the specifications for Web application development provided as part of the Java EE specification. You can also customize the IDE to work with additional frameworks of your choice.

 

Java EE 6 Web Profile Support

The Java EE 6 Web Profile defines a subset of specifications that can be used to build Web applications. In addition to supporting the full Java EE specification, NetBeans provides out of the box support for the Web profile, including support for JSF, JSPs, Servlets.

 

JSF Development

NetBeans IDE supports the latest JavaServer Faces (JSF) 2.1 standard, as well as the older 2.0 and 1.2 standards. NetBeans IDE supports Facelets, the official view technology for JSF 2.1. You can create a new web application project based on the Facelets framework and work with standard JSF reference implementation components.

The IDE also supports various JSF component libraries (PrimeFaces, RichFaces, ICEfaces) that can simplify the development of facelet pages.

Introduction to JavaServer Faces

 

Wizard Based Client Generation

Use the JSF CRUD application generator (Create/Read/Update/Delete) to create a complete functional JSF page for manipulating data from a database. The New File wizard can generate customizable CRUD JSF pages from existing entities. Use the customizable HTML and JSF components palettes to drag and drop HTML and JSF forms into web pages and to generate JSF data tables from entities. The ability to create and work with Facelets templates is also provided.

The IDE now generates code using annotations instead of deployment descriptors where possible.

 

JSF Templates Support

JSP Development

Hibernate Support


The IDE provides a Facelets Template wizard for creating Facelets templates, and a Facelets Template Client wizard for creating files that rely on a template.


In JavaServer Pages (JSP) files, the editor assists you with code completion, hypertext navigation, error checking, and debugging. You can drag and drop code snippets from a pallete. There is support for creating and using custom tag libraries.

Introduction to developing Web applications with JSP

Spring Support
Hibernate libraries are automatically bundled with your application when you select the Hibernate framework in the New Project wizard. The IDE provides wizards for creating Hibernate reverse engineering and configuration XML files and POJO classes.

Using Hibernate in a Web Application

Spring Support

Struts Support

Other Frameworks

Spring Support
Select the Spring framework in the New Project wizard and immediately start out with a skeleton Spring Web MVC application. Take advantage of refactoring (including XML configuration files), and code completion in the editor.

Introduction to Spring Web MVC

Struts Support
Select the Struts framework to create flexible web applications based on standard technologies, such as JSP pages, JavaBeans, resource bundles, and XML. Benefit from code completion for Struts tags, and Struts Javadoc pop-ups in the editor.

Introduction to the Struts Web Framework

Struts Support
You can install additional plugins providing support for other frameworks, when provided, from the IDE's Update Center.

For example, the Wicket plugin can be installed to enable support for the Wicket framework.

Introduction to the Wicket Web Framework

Adding Support for a Web Framework

See Also