JSP Params Action.

JSP Params Action Element

  • All the JSP action elements are used during the request processing phase, and not as the directive elements and script elements, which are used during the translation phase
  • All JSP action elements are specified in XML tags and can not be used in an XML directive as these have no end tag.
  • The JSP params action is part of the JSP plugin action and can only occur as a direct child of a JSP plugin action.
  • The JSP params action can contain one or more JSP param actions, which provides parameters to the Applet or JavaBeans component.
  • Here is the notation for the JSP params action element:
    XML Description
    <jsp:params > content </jsp:params> The content is one or more JSP param actions. There is no attributes for this action element.
    Example of how to use it:
        <jsp:plugin
          type="applet"
          code="app.InfoJApplet.class"
          codebase="/PluginAction"
          jreversion="1.8"
          archive="PluginActionApplet.jar"
          >
          <jsp:params>
            <jsp:param name="firstName" 
                       value="James" />
            <jsp:param name="lastName" 
                       value="Bond" />
          </jsp:params>
          <jsp:fallback>
            <p>Could not load the applet!</p>
          </jsp:fallback>
        </jsp:plugin>

Example of using JSP params action element.

In the example we use Netbeans IDE and Glassfish Server.

You can download this example here (needed tools can be found in the right menu on this page).

If you want to go through this example, you'll find it under JSP Plugin action.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.