Thursday, 19 September 2013

JSP actions

Action tags are set of tags which allows us to include some basic actions such as inserting some other page resource, forwarding the request to another page, creating or locating the Java Bean instances, and setting and retrieving bean properties, in JSP pages.
The action tags are specific to JSP page. When the JSP container encounters an action tag while converting a JSP page into a servlet, it generates the java code that corresponds to the required predefined task. For example when it comes across the ‘include’ action tag:
<jsp:include page=”myjsp.jsp” flush=”true”/>

The above jsp code is “the jsp:include action tag allows to include the myjsp.jsp page.

The action tags are:

1. <jsp:include> http://improve-jsp.blogspot.in/2013/09/blog-post.html
      Difference between include directive and include action
    (http://improve-jsp.blogspot.in/2013/09/difference-between-include-directive.html)
 2. <jsp: forward> action: http://improve-jsp.blogspot.in/2013/09/jspforward-action-tags.html
  3. <jsp:param> action: http://improve-jsp.blogspot.in/2013/09/jsp-implicit-objects_23.html
 4. <jsp:useBean> action: http://improve-jsp.blogspot.in/2013/09/jsp-implicit-objects_6038.html
Example program: Develop a web application for registration form using Beans (java beans) in a JSP
5. <jsp:getProperty action http://improve-jsp.blogspot.in/2013/09/implicit-objects-jspgetproperty-action.html
6. <jsp:setProperty> http://improve-jsp.blogspot.in/2013/09/jsp-implicit-object-jspsetproperty.html

No comments:

Post a Comment