Skip to main content

2012 | Buch

Beginning JSP, JSF and Tomcat

Java Web Development

insite
SUCHEN

Über dieses Buch

Start building Java–based web applications now, even if you’re a complete newcomer to Java. Comprehensive and example–driven, Beginning JSP, JSF, and Tomcat: Java Web Development, Second Edition is all you need to develop dynamic Java-based web applications using JSP, connect to databases with JSF, and put them into action using the world’s most popular open source Java web server, Apache Tomcat.

A comprehensive introduction to JavaServer Pages (JSP), JavaServer Faces (JSF), and the Apache Tomcat web application server Key concepts made easy to grasp by numerous working examples and a walkthrough of the development of a complete e-commerce project Written for professionals by a practicing Java web application professional and expert

Inhaltsverzeichnis

Frontmatter
Chapter 1. Introducing JSP and Tomcat
Abstract
Interactivity is what makes the Web really useful. By interacting with a remote server, you can find the information you need, keep in touch with your friends, or purchase something online. And every time you type something into a web form, an application “out there” interprets your request and prepares a web page to respond.
Giulio Zambon
Chapter 2. JSP Elements
Abstract
A JSP page is made out of a page template, which consists of HTML code and JSP elements such as scripting elements, directive elements, and action elements. In the previous chapter, after explaining how to install Java and Tomcat, I introduced you to JSP and explained JSP’s role within web applications. In this chapter, I’ll describe in detail the first two types of JSP elements. For the action elements, refer to Chapter 4.
Giulio Zambon
Chapter 3. JSP Application Architectures
Abstract
In the first two chapters, you learned a large portion of JSP’s components through brief examples. In this chapter, I will tell you how everything fits together in complex applications.
Giulio Zambon
Chapter 4. JSP in Action
Abstract
In Chapter 2, you learned that there are three types of JSP elements: scripting, directives, and actions. I described the first two types directly in Chapter 2, and the time has come to look at JSP actions. Actions, like scriptlets, are processed when a page is requested. In this chapter, you will learn how to use JSP standard actions, how to create actions of your own design, and how to use some of the actions contained in the JSP Standard Tag Library. Besides small specific examples, you will also learn the role of actions in the eshop application that I introduced in the previous chapter. Actions can do everything that scripting elements can do, as you will see at the end of the next chapter, when I will tell you how to write JSP code without any scripting element at all.
Giulio Zambon
Chapter 5. XML and JSP
Abstract
HTML is probably the first markup language most of us came into contact with. It’s a great language, but it’s not without its problems.
Giulio Zambon
Chapter 6. Databases
Abstract
In many cases, a web application is nothing more than a front end for a database (DB). In fact, what makes web pages dynamic is precisely the fact that there is a significant amount of data behind them.
Giulio Zambon
Chapter 7. JavaServer Faces 2.2
Abstract
In this chapter, I’ll introduce you to JSF and show you how to use it to create user interfaces for webbased applications. Within the MVC application architecture I described in Chapter 3 (refer to Figure 3-2), JSF takes the place of the controller, thereby mediating every interaction between JSP (the View) and the Model, which encapsulates the application data. JSF makes the development of web applications easier by:
  • Letting you create user interfaces from a set of standard UI components wired to server-side objects
  • Making available four custom tag libraries to handle those UI components
  • Providing a mechanism for extending the standard UI components
Giulio Zambon
Chapter 8. JSF and eshop
Abstract
In Chapter 3, I introduced the eshop project, followed in Chapter 6 by eshopx, functionally identical to eshop except that I replaced the JSP pages containing scripting elements with JSP documents in XML format.
Giulio Zambon
Chapter 9. Tomcat
Abstract
I’ve been using Tomcat in all the previous chapters to show you examples of servlets, JSP pages, and documents. Now it’s time to talk about Tomcat itself.
Giulio Zambon
Chapter 10. eshop*
Abstract
In several chapters of this book, I’ve used examples taken from three different versions of an online bookshop application: eshop (see Chapter 3), eshopx (introduced in Chapter 6), and eshopf (the subject of Chapter 8). In this chapter, I’ll complete the description of those applications so that you can use them as models for your own.
Giulio Zambon
Backmatter
Metadaten
Titel
Beginning JSP, JSF and Tomcat
verfasst von
Giulio Zambon
Copyright-Jahr
2012
Verlag
Apress
Electronic ISBN
978-1-4302-4624-4
Print ISBN
978-1-4302-4623-7
DOI
https://doi.org/10.1007/978-1-4302-4624-4