TAILIEUCHUNG - Java Server Pages: A Code-Intensive Premium Reference- P23

Java Server Pages: A Code-Intensive Premium Reference- P23:Before you begin reading Pure JSP Java Server Pages, you might want to take a look at its basic structure. This should help you outline your reading plan if you choose not to read the text from cover to cover. This introduction gives you an overview of what each chapter covers. | This version of the println method prints the passed in int value to the output stream followed by a CRLF. Parameters int println long value Method public void println long value throws This version of the println method prints the passed in long value to the output stream followed by a CRLF. Parameters long println float value Method public void println float value throws This version of the println method prints the passed in float value to the output stream followed by a CRLF. Parameters float println double value Method public void println double value throws This version of the println method prints the passed in double value to the output stream followed by a CRLF. Parameters double Chapter 21 The Package Overview The package contains the interfaces and classes that are implemented and extended respectively to create HTTP-specific servlets. Figure contains the object model. - 221 - Figure The object model. Interfaces Interfaces for the package are HttpServletRequest HttpServletResponse HttpSession and HttpSessionBindingListener. HttpServletRequest Interface public interface HttpServletRequest extends ServletRequest The HttpServletRequest interface defines an object that provides the method with access to HTTP-protocol-specific header information sent by the client. The HttpServletRequest interface has 26 methods described in the following sections. addHeader Method public void addHeader name value The addHeader method adds another value to the response for the given header. addHeader returns no value and throws no exceptions. Parameters addDateHeader Method public void addDateHeader name long date The addDateHeader method adds another date value to the response for the given header. addDateHeader

TỪ KHÓA LIÊN QUAN
TÀI LIỆU HOT