Action tags in jsp

Action tags :

In JSP action tags include in jsp 1.1 version and some more tags added in jsp1.2 and 2.0 version.

Action tags allow us to include some basic actions like inserting some other page resources, forwarding request to another pages, creating and locating javabean instances, setting and getting bean properties, in jsp page. When jsp container encounters an action tag during converting a jsp to servlet, it generates corresponds java code to the required predefined task.

Example :


<jsp:include page=”myjsp.jsp” flush=”true” />

There are some useful action tags as below mentions :

  • <jsp:include>
  • <jsp:forward>
  • <jsp:param>
  • <jsp:useBean>
  • <jsp:setProperty>
  • <jsp:getProperty>
  • <jsp:plugin>
  • <jsp:fallback>
  • <jsp:element>
  • <jsp:text>
  • <jsp:params>
  • <jsp:attribute>
  • <jsp:body>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s