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:-
- Page - default scope of JSP(***)
- Request
- Session
- Application(ServletContext)
0 comments:
If you have any doubts,please let me know