What are JSP standard action tags?
JSP provides a bunch of standard action tags that can be used for specific tasks such as working with Java bean objects, including other resource, forwarding the request to other resource etc. JSP Standard action tags are represented using XML elements with a prefix of jsp.
The list of standard JSP action elements in JSP are:
- <jsp:useBean /> – To get an instance of a Java object defined within a given scope and a given id.
- <jsp:setProperty /> -Sets the values of properties in a bean.
- <jsp:getProperty /> – Used to place the value of a bean instance property converted to a String into the implicit object out from which the value can be displayed as output.
- <jsp:include /> – Provides for the inclusion of static and dynamic resources in the same context as the current page.
- <jsp:forward /> – Allows the runtime dispatch of the current request to another resource in the same context. A <jsp:forward> tag effectively terminates the execution of the current page.
- <jsp:param /> – Used to provide key/value information. This element is used in the jsp:include, jsp:forward, and jsp:params elements.
- <jsp: plugin /> – The plugin action enables to generate HTML that contains the appropriate client browser dependent constructs like OBJECT or EMBED for the Java plugins.
- <jsp:attribute />– Defines the value of an action attribute in the body of an XML element instead of in the value of an XML attribute.
- <jsp:body /> – Defines the body of a standard or custom action tag.
- <jsp:element /> – Used to dynamically define the value of the tag of an XML element.
- <jsp:text /> – Used to enclose template data in a JSP page.