Please enable JavaScript.
Coggle requires JavaScript to display documents.
JSP, Scriptlets
<% Java Code; %>
insert arbitrary code into the…
JSP
Action
Exp: jsp:include, jsp:forward, jsp:useBean, jsp:plugin, jsp:setProperty, jsp:getProperty
-
-
-
-
-
Implicit objects
– out, the PrintWriter (a buffered version of type
JspWriter) used to send output to the client.
-
request, the HttpServletReqest
-
session, the HttpSession associated with the request
-
response, the HttpServletResponse
-
Scripting Elements
-
Declaration
<%! Java Code %>
define methods or fields that get inserted into the main body of the servlet class
Directive
<%@ directive attribute="value"%>
affects the overall structure of the servlet class.
-Page
-Include
Comment
- <%-- comment --%>
A JSP comment
- <!-- comment -->
An HTML comment
-
Scriptlets
<% Java Code; %>
insert arbitrary code into the servlet method that will be built to generate the page.