Standard Actions in JSP

How are Standard Actions used in JSP?
What are the Standard Actions in JSP?

Explanation

Standard Actions are actions that are defined in JSP itself, it need not be declared with a "taglib" directive. All the Standard Actions in JSP has a default prefix "jsp".

The following is the list of Standard Actions in JSP.
Action Element Description
<jsp:useBean> Enables JavaBeans components in that page
<jsp:getProperty> Get a property value from JavaBeans component and adds to the response
<jsp:setProperty> Sets the JavaBeans property value
<jsp:include> Includes the response from the jsp page while processing.
<jsp:forward> Forwards the processing of a request to ajsp page
<jsp:param> Adds a parameter value to a request handed off using the <jsp:include or <jsp:forward>
<jsp:plugin> Generates a HTML elements appropriate to a browser to execute an applet using Java Plugin.
<jsp:attribute> Sets the value of the action element based on the body of this element.
<jsp:body> Sets action element body based on the body of this element.
<jsp:element> Dynamically generates XML element.
<jsp:text> Encapsulates template text, needed in JSP pages written in XML.

Example :


<html>
<body>
<jsp:forward page="index.jsp"/>
</body>
<html>

In the above exampe we use the Standard Tag "<jsp:forward page" to redirect to the "index.jsp" page.

Ask Questions

Ask Question