JSP – Action Tags

JSP Action Tags

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


<jsp:actionName attributeName=”attributeValue”/>

Commonly used JSP action tags are as follows:

  • jsp:forward
  • jsp:include
  • jsp:param
  • jsp:useBean
  • jsp:setProperty
  • jsp:getProperty

Common attributes of all action tags:

  • id attribute: This attribute is used to uniquely identifying the action element inside the jsp page.
  • scope attribute: This attribute is used identifying the lifecycle of the action element.
Scroll to Top