# The Java EE 7 Tutorial

# 6 Getting Started with Web Applications

This chapter introduces web applications, which typically use JavaServer Faces technology and/or Java Servlet technology. A web application is a dynamic extension of a web or application server. Web applications are of the following types:

- Presentation-oriented: A presentation-oriented web application generates interactive web pages containing various types of markup language (HTML, XHTML, XML, and so on) and dynamic content in response to requests. Development of presentation-oriented web applications is covered in Chapter 7, "JavaServer Faces Technology," through Chapter 17, "Java Servlet Technology."

- Service-oriented: A service-oriented web application implements the endpoint of a web service. Presentation-oriented applications are often clients of service-oriented web applications. Development of service-oriented web applications is covered in Chapter 28, "Building Web Services with JAX-WS," and Chapter 29, "Building RESTful Web Services with JAX-RS," in Part VI, "Web Services."

The following topics are addressed here:

- Web Applications

- Web Application Lifecycle

- A Web Module That Uses JavaServer Faces Technology: The hello1 Example

- A Web Module That Uses Java Servlet Technology: The hello2 Example

- Configuring Web Applications

- Further Information about Web Applications