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
... 1005 Gravenstein Highway North Sebastopol, CA 95 472 (800) 998-9938 (in the United States or Canada) (70 7) 829-0515 (international or local) (70 7) 829-0104 (fax) We have a web page for this ... 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 Ja...
Ngày tải lên: 13/08/2014, 21:21
... Chapter 7. Using Custom Tag Libraries and the JSP Standard Tag Library 73 These two approaches work in JSP 1.2 container as well, but ... because the auto-discovery feature makes life so much easier. 7. 4 Using Actions from a Tag Library The custom action described in Table 7- 1 does exactly the same thing as the second bean used in ... Chapter 6: it adds a message from a specified cat...
Ngày tải lên: 13/08/2014, 21:21
Java Server Pages 2nd Edition phần 4 pps
... maximum age of 0. This means that the cookies expire immediately and will never be sent to this server again. If you want to send a cookie to a browser that should be valid only until the user ... number (for instance, -1). Table 12-5. Attributes for <ora:addCookie> Attribute name Java type Dynamic value accepted Description name String Yes Mandatory. The name of the coo...
Ngày tải lên: 13/08/2014, 21:21
Java Server Pages 2nd Edition phần 5 ppsx
... 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 is used as the scripting ... language=" ;java& quot; import=" ;java. util.*" %> The language attribute specifies the scripting language used in the page. All containers are required to support Java....
Ngày tải lên: 13/08/2014, 21:21
Java Server Pages 2nd Edition phần 6 doc
... import java. io.*; import javax.servlet.*; import javax.servlet.http.*; public class ErrorDispatcherServlet extends HttpServlet { private static final String SERVLET_EXCEPTION = "javax.servlet.error.exception"; ... private static final String JSP_EXCEPTION = "javax.servlet.jsp.jspException"; private static final String SERVLET_ERROR_SOURCE = "javax.se...
Ngày tải lên: 13/08/2014, 21:21
Java Server Pages 2nd Edition phần 10 ppsx
... Appendix F. Web Application Structure and Deployment Descriptor Reference 5 97 <filter-mapping> A filter is mapped to either a URI pattern or a servlet using the
Ngày tải lên: 13/08/2014, 21:21