JSP Action Tags
JSP action provides a standard tag called Action Tag using which we can remove scriplet tag from jsp page.
The action tag is also implemented to streamline flow between pages and to use a Java Bean. The syntax for the action element is:
Syntax:
<jsp:action_name attribute = "attribute_value" />
example
<jsp:include page = "Page URL" flush = "Boolean Value" />
List of jsp action tags
Action Tag | Description |
---|---|
jsp:forward | Used for forwarding the request and response to other resource |
jsp:include | Used for including response from another resource |
jsp:body | Used for defining dynamically defined body of XML element |
jsp:useBean | Used for creating or locating java beans |
jsp:setProperty | Used for setting property value in java bean |
jsp:getProperty | Used for getting property value in java bean |
jsp:plugin | Used for embedding other components/applets |
jsp:element | Used for defining XML elements dynamically. |
jsp:param | Used for setting the parameter for forward or include value |
jsp:text | Used for writing template text in JSP pages and documents. |
jsp:fallback | Used for printing the message if plugins are working |
jsp:attribute | Used for defining attributes of dynamically-defined XML element |