Master java skills

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 TagDescription
jsp:forwardUsed for forwarding the request and response to other resource
jsp:includeUsed for including response from another resource
jsp:bodyUsed for defining dynamically defined body of XML element
jsp:useBeanUsed for creating or locating java beans
jsp:setPropertyUsed for setting property value in java bean
jsp:getPropertyUsed for getting property value in java bean
jsp:pluginUsed for embedding other components/applets
jsp:elementUsed for defining XML elements dynamically.
jsp:paramUsed for setting the parameter for forward or include value
jsp:textUsed for writing template text in JSP pages and documents.
jsp:fallbackUsed for printing the message if plugins are working
jsp:attributeUsed for defining attributes of dynamically-defined XML element