Book Image

Java EE 5 Development with NetBeans 6

Book Image

Java EE 5 Development with NetBeans 6

Overview of this book

Table of Contents (17 chapters)
Java EE 5 Development with NetBeans 6
Credits
About the Author
About the Reviewers
Preface
Identifying Performance Issues with NetBeans Profiler

Chapter 2. Developing Web Applications with Servlets and JSPs

In this chapter we will be covering how to develop Java EE web applications taking advantage of the Servlet API. We will also see how to develop Java Server Pages (JSPs) to better separate application business logic from presentation. Some of the topics covered in this chapter include:

  • Developing JSPs for display of dynamic web content

  • Developing servlets for server side processing of Java web applications

  • Securing web applications

  • Extracting common markup into JSP fragments

  • Using NetBeans HTTP monitor to examine application behavior

Creating Our First Web Application

NetBeans provides a Web category for web applications. To create a new web application, we need to click on File | New Project (or press Ctrl+Shift+N simultaneously) to create a new project, then select Web as the project category, and Web Application.

We then need to select a project name for our project. As we type the name for our project, the project location, project...