Đang chuẩn bị liên kết để tải về tài liệu:
Java Server Pages: A Code-Intensive Premium Reference- P11

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Java Server Pages: A Code-Intensive Premium Reference- P11: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. | out.clear String _jspx_qfStr _jspx_qfStr _jspx_qfStr employee Joe _jspx_qfStr _jspx_qfStr title Senior Engineer pageContext.forward MCPHome.jsp _jspx_qfStr return end begin out.write r n end begin file C UseForward.jsp from 24 10 to 26 4 You can see that there is nothing really complicated about this code snippet. It simply decides which JSP to forward to creates the query string and calls the pageContext.forward method with the name of the JSP and the query string. jsp plugin The jsp plugin action enables a JSP author to generate HTML that contains the appropriate clientbrowser-dependent constructs for example object or embed that will result in the download of the Java plug-in and subsequent execution of the specified applet or JavaBeans component. The jsp plugin tag is replaced by either an object or embed tag as appropriate for the requesting user agent and written to the output stream of the response object. The attributes of the jsp plugin action provide configuration data for the presentation of the element. The syntax of the jsp plugin action is as follows jsp plugin type pluginType code classFile codebase relativeURLpath jsp params jsp params jsp plugin Table 10.4 contains the attributes and their descriptions for the j sp plugin action. Table 10.4 The Attributes for the jsp plugin Action Attribute Definition type This attribute represents the type of plug-in to include. An example of this would be an applet. 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. Note There are additional attributes associated with the jsp plugin standard action but these attributes are beyond the scope of this example. You can find further information in the JSP 1.1 specification. - 101 - The jsp plugin attributes indicate the optional parameters that can be passed to the applet or JavaBeans component. For our example we are going to .