JSP action tags

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

Syntax: <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 identifying the action element inside the jsp page.

2. scope attribute: This attribute is used identifying the lifecycle of the action element.
 
Next Topic: jsp:forward action tag with example.
Previous Topic: JSP exception implicit object with example.