When considering the include action, it s important to note that the value of the page attribute can be a JSP expression or some other dynamically generated expression. The flush attribute must be coded as true. You can code param tags with the include action, as shown here: The plugin and fallback Actions You use the plugin action to generate HTML tags for embedding Java applets in the generated output page to ensure that the browser contains an appropriate Java runtime, and that it executes the applet properly. All but 4 of the 13 attributes of the plugin action have the same meaning as the HTML counterparts. The parameters that have different meaning are: . type: Identifies the type of the component; a bean or an applet . jreversion: Java runtime required to execute the component . nspluginurl: Location of the Netscape JRE download, as a URL . iepluginurl: Location of the Internet Explorer JRE download, as a URL The plugin action takes an optional param action as well. You may code a fallback action to provide information when the plugin fails to load. Basically, the fallback action provides alternate text that performs the same function as the ALT attribute. The useBean Action The useBean action is used to make a JavaBean known to your JSP. You read more about bean use with your JSPs in Chapter 6, “JSP, JavaBeans, and JDBC.” In this section, you get exposure to the syntax for the useBean action. There are several forms for coding the useBean action, as shown here: The attributes coded for useBean have the following meaning: . id: The name of the bean object instance. . scope: A context in which the bean reference is known. The different scope contexts are represented by implicit objects, covered more fully in the next section. Think of the bean object as having a different life cycle for different scope values. Table 4-3 lists the values and meaning of the scope attribute of the useBean action.
If hosting is cheap, it doesn’t need to be second-rate. Try us if you don’t believe cheap web hosting we have 30 days money back guarantee.

Leave a Reply