• October 7, 2014
  • JSP
  • Comments Off on JSP action tags

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. 1. jsp:forward
  2. 2. jsp:include
  3. 3. jsp:param
  4. 4. jsp:useBean
  5. 5. jsp:setProperty
  6. 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.

Related Topics:

JSP action tags with example.
jsp:forward action tag with example.
jsp:include action tag with example.
jsp:param action tag with example.
jsp:useBean, jsp:setProperty and jsp:getProperty action tag.
Exception handling in JSP with example.
JSP Expression Language with example.


Comments are closed.