Saturday, June 11, 2022

Criteria for in java

 Criteria for JSP

Criteria for JSP

 Criteria for JSP



There are 3 different criteria present for JSP namely:-

  • We cannot write one JSP Element inside another JSP Element.

   eg:-> 

         <% 


          <%   %>


         %>


  • We cannot write any HTML Code inside the JSP Element.

   eg:->  

         HTML

         <%


         %>

  • We can write any JSP Element for any number of times.

   <%


   %>


   <%


   %>

Implicit Objects of JSP:- 

There are 9 Implicit Objects present in JSP namely:-


  • request     - HttpServletRequest
  • response    - HttpServletResponse
  • Config      - ServletConfig
  • Application - ServletContext
  • Csession     - HttpSession
  • page - Object
  • Out         - JspWriter
  • Exception   - throwable
  • pagecontext - pagecontext


Scope of JSP:-

There are 4 different scopes present for JSP namely:-

  1. Page - default scope of JSP(***)
  2. Request 
  3. Session
  4. Application(ServletContext)


0 comments:

If you have any doubts,please let me know