Java Server Page

JSP Projects

JSP Project

adplus-dvertising
Define the JSP Tag used into program)
Previous Home Next

JSP tag is used to execute the java code in JSP program. Four main Tag is-

  • Declaration Tag (Syntax: <%! ........ %>)
  • Expression Tag (Syntax: <%= ........ %>)
  • Directive Tag (Syntax: <%@ .......%>)
  • Scriptlet Tag (Syntax: <% ........ %>)
  • Action Tag:
  1. JavaBeans
    (Syntax:<jsp:useBean id=" " scope="page" class="
    " type=" " beanName=" " />)
    id="beanInstanceName"
    scope="page|request|session|application"
    		page:  valid until page is complete.
    request: bean instance lasts for the client request.
    session: bean lasts for the client session. 
    application: bean instance created and lasts
    until application ends.
     class & type ="package.class"
     beanName="{package.class | <%= expression %>}"
     type="package.class".
    
  2. Dynamic JSP Include
     (Syntax:   <%@include file="" %>)
    This is used to include common pages that are shared,
    and include at the compile time.
    <jsp:include page="page.html/page.jsp"
    flush="false/true" >
        This is used to include page at the run time.
    
Previous Home Next