Learn Java for Web Development
56 CHAPTER 2: Building Web Applications Using Servlets and JSP You can now access your first web application through the URL htt ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 57 In the following section, you will learn how the request flows th ...
58 CHAPTER 2: Building Web Applications Using Servlets and JSP Figure 2-15 shows the homepage of Tomcat that you will see when y ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 59 Examining the Request When the client (web browser) makes a reque ...
60 CHAPTER 2: Building Web Applications Using Servlets and JSP context root. A Java EE web.xml file can contain many additional ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 61 An HTTP request to an HttpServlet subclass goes through a number ...
62 CHAPTER 2: Building Web Applications Using Servlets and JSP When a servlet instance is created, its init() method is invoked ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 63 The ServletConfig object can be used to do the following: Pas ...
64 CHAPTER 2: Building Web Applications Using Servlets and JSP Note Once the container sets the init params in ServletConfig, th ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 65 You can get a RequestDispatcher in two ways. Getting a Reques ...
66 CHAPTER 2: Building Web Applications Using Servlets and JSP Providing actions on web components by using a chain of filte ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 67 Data compression filters Encryption filters Image con ...
68 CHAPTER 2: Building Web Applications Using Servlets and JSP On the next screen, you can fill in the information pertaining to ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 69 The IDE generates the HelloWorld servlet illustrated in Listing 2 ...
70 CHAPTER 2: Building Web Applications Using Servlets and JSP 15.private static final long serialVersionUID = 1L; 16. /** @s ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 71 For more information on the Java Servlet technology, refer to the ...
72 CHAPTER 2: Building Web Applications Using Servlets and JSP Right-click the project helloworld, create a new JSP file, and gi ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 73 Figure 2-23. Creating the JSP file Modify the code of helloworld. ...
74 CHAPTER 2: Building Web Applications Using Servlets and JSP Launch the application using http://localhost:8080/HelloWorld/hel ...
CHAPTER 2: Building Web Applications Using Servlets and JSP 75 JSP Basics This section will cover the fundamental JSP constructs ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf