What are JSP standard action tags?

What are JSP standard action tags?

Ninja Asked on 18th September 2018 in Jsp.
Add Comment
1 Answer(s)
Best answer

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:

  1. <jsp:useBean /> – To get an instance of a Java object defined within a given scope and a given id.
  2. <jsp:setProperty /> -Sets the values of properties in a bean.
  3. <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.
  4. <jsp:include /> – Provides for the inclusion of static and dynamic resources in the same context as the current page.
  5. <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.
  6. <jsp:param /> – Used to provide key/value information.  This element is used in the jsp:include, jsp:forward, and jsp:params elements.
  7. <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.
  8. <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.
  9. <jsp:body /> – Defines the body of a standard or custom action tag.
  10. <jsp:element /> –  Used to dynamically define the value of the tag of an XML element.
  11. <jsp:text /> – Used to enclose template data in a JSP page.
Ninja Answered on 18th September 2018.
Add Comment