Java Server Pages 2nd Edition phần 1 doc

Java Server Pages 2nd Edition phần 1 doc

Java Server Pages 2nd Edition phần 1 doc

... for First Edition I love to write and have always wanted to write a book someday. After getting a number of articles about Java servlets and a couple of chapters for a server- side Java book ... Associates, Inc. 10 05 Gravenstein Highway North Sebastopol, CA 95472 (800) 998-9938 (in the United States or Canada) (707) 829-0 515 (international or local) (707) 829- 010 4 (fax) We...

Ngày tải lên: 13/08/2014, 21:21

2 176 0
Java Server Pages 2nd Edition phần 6 doc

Java Server Pages 2nd Edition phần 6 doc

... Example 18 -13 shows the code for the ErrorDispatcherServlet class. Example 18 -13 . The ErrorDispatcherServlet package com.ora.jsp.servlets; import java. io.*; import javax.servlet.*; import javax.servlet.http.*; ... "javax.servlet.error.exception"; private static final String JSP_EXCEPTION = "javax.servlet.jsp.jspException"; private static final String S...

Ngày tải lên: 13/08/2014, 21:21

2 241 0
Java Server Pages 2nd Edition phần 2 ppt

Java Server Pages 2nd Edition phần 2 ppt

... 7 -1 does exactly the same thing as the second bean used in Chapter 6: it adds a message from a specified category to a page. Table 7 -1. Attributes for <ora:motd> Attribute name Java ... Day</title> </head> <body bgcolor="white"> <h1>Messages of the Day</h1> <h2>Deep Thoughts - by Jack Handey</h2> <i> <ora:...

Ngày tải lên: 13/08/2014, 21:21

2 252 0
Java Server Pages 2nd Edition phần 4 pps

Java Server Pages 2nd Edition phần 4 pps

... this server again. If you want to send a cookie to a browser that should be valid only until the user closes the browser, set the maximum age to a negative number (for instance, -1) . Table 12 -5. ... Chapter 12 . Authentication and Personalization 19 4 <c:choose> <c:when test="${!empty param.remember}"> ... of seconds the cookie shall persist in the browser....

Ngày tải lên: 13/08/2014, 21:21

2 252 0
Java Server Pages 2nd Edition phần 5 ppsx

Java Server Pages 2nd Edition phần 5 ppsx

... JSP 1. 2 specification requires that the classes in the java. lang, javax.servlet, javax.servlet.jsp, and the javax.servlet.http packages are available by default to scripting elements when Java ... you haven't seen any Java code in the examples so far. That's because there's really no reason to embed raw Java code in JSP pages anymore. With JSP 1. 0, it was the...

Ngày tải lên: 13/08/2014, 21:21

2 164 0
Java Server Pages 2nd Edition phần 7 pptx

Java Server Pages 2nd Edition phần 7 pptx

... interface method implementations: package com.ora.jsp.tags; import javax.servlet.http.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import com.ora.jsp.util.*; public ... maxAgeString) { this.maxAgeString = maxAgeString; } The purpose of the custom action is to create a new javax.servlet.http.Cookie object with the name, value, and maximum age values specifie...

Ngày tải lên: 13/08/2014, 21:21

2 282 0
Java Server Pages 2nd Edition phần 9 ppsx

Java Server Pages 2nd Edition phần 9 ppsx

... transaction, from the explicitly specified data source or the data-source configuration setting. Syntax 1: Without a body <sql:update sql="sqlStatement" [dataSource=" dataSource"]

Ngày tải lên: 13/08/2014, 21:21

2 234 0
Java Server Pages 2nd Edition phần 10 ppsx

Java Server Pages 2nd Edition phần 10 ppsx

... </filter-mapping> <listener> All the listener types described in Chapter 19 must be registered with a <listener> element. The nested <listener-class> element

Ngày tải lên: 13/08/2014, 21:21

2 165 0
Từ khóa:
w