Danh mục

Java Server Pages: A Code-Intensive Premium Reference- P2

Số trang: 10      Loại file: pdf      Dung lượng: 293.94 KB      Lượt xem: 7      Lượt tải: 0    
tailieu_vip

Phí tải xuống: 1,000 VND Tải xuống file đầy đủ (10 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Java Server Pages: A Code-Intensive Premium Reference- P2:Before you begin reading Pure JSP Java Server Pages, you might want to take a look at its basicstructure. This should help you outline your reading plan if you choose not to read the text from cover tocover. This introduction gives you an overview of what each chapter covers.
Nội dung trích xuất từ tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P2The action associates an instance of a JavaBean defined with a given scope and ID, viaa newly declared scripting variable of the same ID. The action will be covered in moredetail in Chapter 3, JavaBeans and JSP Concepts.The action sets the value of a beans property. The actionwill be covered in more detail in Chapter 3.The action takes the value of the referenced bean instances property, converts itto a java.lang.String, and places it into the implicit out object. This action will be covered in more detail inChapter 3.The action provides a mechanism for including additional static and dynamic resourcesin the current JSP page. The syntax for this action is as follows:and { jsp:param ... /> }The first syntax example illustrates a request-time inclusion, whereas the second contains a list of paramsub-elements that are used to argue the request for the purpose of inclusion. Table 1.3 contains theattributes and their descriptions for the action.Table 1.3: The Attributes for the ActionAttribute Definitionpage This attribute represents the relative URL of the resource to be included.flush This attribute represents a mandatory Boolean value, stating whether or not the buffer should be flushed.The action enables the JSP engine to dispatch, at runtime, the current request to astatic resource, servlet, or another JSP. The appearance of this action effectively terminates the executionof the current page. Note A action can contain sub-attributes. These subattributes provide values for parameters in the request to be used for forwarding.The syntax of the action is as follows:and attribute represents the relative URL of the target to be forwarded.The action is used to provide tag/value pairs of information, by including them as sub-attributes of the , , and the actions. The syntax of the action is as follows: Table 1.5 contains the attributes and their descriptions for the action.Table 1.5: The Attributes for the ActionAttribute Definitionname This attribute represents the name of the parameter being referenced.value This attribute represents the value of the named parameter.The action gives a JSP author the ability to generate HTML that contains the appropriateclient-browser–dependent constructs, for example, OBJECT or EMBED, that will result in the download of aJava plug-in and subsequent execution of the specified applet or JavaBeans component.The tag is replaced by either an or tag, as appropriate for therequesting user agent, and the new tag is written to the output stream of the response object. Theattributes of the action provide configuration data for the presentation of the element. Thesyntax of the action is as follows: ... Table 1.6 contains the attributes and their descriptions for the action.Table 1.6: The Attributes for the ActionAttribute Definitiontype This attribute represents the type of plug-in to include. An example of this would be an applet. - 12 -code This attribute represents the name of the class that will be executed by the plug-in.codebase This attribute references the base or relative path of where the code attribute can be found.The attributes indicate the optional parameters that can be passed to the applet orJavaBeans component.Implicit ObjectsAs a JSP author, you have access to certain implicit objects that are available for use in JSP documents,without being declared first. To satisfy the JSP specification, all JSP scripting languages must provideaccess to the objects defined in Table 1.7. Each of these implic ...

Tài liệu được xem nhiều: