JSP action tags

JSP specification provides the action tags to control the behavior of the servlet engine, to control page flow, to dynamically insert a file, to reuse JavaBeans components, etc. jsp: is used as a prefix.



<jsp:actionName attributeName="attributeValue"/>


Commonly used JSP action tags are as follows:

  1. jsp:forward
  2. jsp:include
  3. jsp:param
  4. jsp:useBean
  5. jsp:setProperty
  6. jsp:getProperty


Common attributes of all action tags:

  1. id attribute: This attribute is used to uniquely identify the action element inside the JSP page.
  2. scope attribute: This attribute is used to identify the lifecycle of the action element.