Book Image

Mastering Netbeans

5 (1)
Book Image

Mastering Netbeans

5 (1)

Overview of this book

Table of Contents (17 chapters)
Mastering NetBeans
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding components to a web application


Once a web application project has been created in NetBeans, either as a standard NetBeans project or a Maven project, we can add additional components into the project. These components can be anything from frontend code such as HTML or CSS files, server-rendered code such as JSF pages, or general utility classes such as service locators that can help when developing applications.

Using the New File wizard and selecting the Web category, we can add the following types of files:

  • JSP: This creates a new JSP page or JSP segment using either standard or XML-based JSP syntax.

  • JSF Page: This creates a new JSF page using either Facelets or JSP as the view engine.

  • Servlet: This provides the ability to create a new servlet. The servlet can be optionally registered within the web.xml file or can be registered using annotations.

  • Filter: This provides the ability to create a new filter. The HTTP request mappings or servlet that apply to the filter can be specified...