JSP Fallback Action
JSP Fallback 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 fallback action is part of the JSP plugin action and can only occur as a direct child of a JSP plugin action.
- The JSP fallback action element indicates the content to be used by the client browser if the plugin cannot be started (either because OBJECT or EMBED is not supported by the client browser or due to some other problem).
Here is the notation for the JSP fallback action element:
XML Description <jsp:fallback > content </jsp:fallback> The content is used by the client browser if the plugin cannot be started. 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 fallback 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.