Servlet
Lifecycle
Load Class
Call No-Arg constructor
init(ServletConfig)
Init
service
doGet()
doPost()
...
destroy
Hierarchy
javax.servlet.Servlet
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
javax.servlet.ServletRequest
javax.servlet.http.HttpServletRequest
javax.servlet.ServletResponse
javax.servlet.http.HttpServletResponse
ServletConfig
ServletContext
RequestDispatcher
Custom Tags
Classic Tags
BodyTagSupport
IterationTagSupport
Simple Tags
Tag Files
TLD
JavaServer Pages
JSTL
Core
General
out
set
remove
catch
Conditional
if
choose
when
otherwise
URL related
import
url
redirect
param
Iteration
foreach
forTokens
Formatting
Internationalization
message
setLocale
bundle
setBundle
param
requestEncoding
Formatting
timeZone
setTimeZone
formatNumber
parseNumber
parseDate
SQL
query
update
setDataSource
param
dateParam
XML
core
parse
out
set
flow
if
choose
when
otherwise
transform
transform
param
Elements
Directives <%@ %> <jsp:directive.page import="" />
page
import
isThreadSafe
contentType
isELIgnored
isErrorPage
errorpage
include
taglib
Declarations <%! %> <jsp:declaration />
Expressions <%= %> <jsp:expression></jsp:expression>
Scriptlets <% %> <jsp:scriptlet></jsp:scriptlet>
Comments <%-- --%>
Standard Actions
jsp:attribute
jsp:import
jsp:forward
jsp:include
jsp:useBean
jsp:getProperty
jsp:setProperty
jsp:param
jsp:params
Lifecycle
JSP page translation
JSP page compilation
Load Class
Create Instance
Create Instance
Call the jspInit method
call the _jspService method
call the jspDestroy method
Implicit Objects
Expression Language
Operators
Arithmetic
Addition +
Subtraction -
Multiplication *
Division / and div
Modulus % and mod
Logical
AND - "&&" or "and"
OR - "||" and "or"
NOT - "!" and "not"
Relational
Equals "==" or "eq"
Not equals "!=" or "ne "
Less than "<" or "lt"
Greater than ">" or "gt"
Less than or equals to "<=" or "le"
Greater than or equals to ">=" or "ge"
Dot notation .
Subscript notation []
Implicit Objects
El Functions
Http
Methods
get
options
head
trace
put
delete
post
connect
Usage
Sessions
HttpSession
isNew()
invalidate()
getMaxInactiveInterval()
setMaxInactiveInterval()
getCreationTime()
getLastAccessedTime()
getId()
Object getAttribute(String)
void setAttribute(String key, Object value)
void removeAttribute(String)
Mechanisms
Cookies
URL Rewriting
response.encodeUrl()
respnse.encodeRedirectUrl()
Create Session
Session s = request.getSession()
Session s = request.getSession(BOOLEAN)
Security
Security Mechanisms
Authentication
Authorization
Confidentiality
Data Integrity
Deployment Descriptor
description*
display-name*
icon
context-param
description
param-name
param-value
filter*
filter-mapping
listener*
listener-class
servlet
description*
display-name*
icon?
small-icon?
large-icon?
servlet-name
jsp-file or servlet-class
init-param*
description*
param-name
param-value
load-on-startup?
run-as?
description*
role-name
security-role-ref*
description*
role-name
role-link?
servlet-mapping
servlet-name
url-pattern
session-config*
session-timeout
mime-mapping
welcome-file-list*
welcome-file
error-page
security-constraint
display-name*
web-resource-collection+
web-resource-name
description*
url-pattern+
http-method*
auth-constraint?
description*
role-name*
user-data-constraint?
transport-guarantee
description*
login-config*
auth-method?
realm-name?
form-login-config
form-login-page
form-error-page
security-role*
description*
role-name
jsp-config
taglib
jsp-property-group
<distributable />
env-entry
ejb-ref
ejb-local-ref
service-ref
resource-ref
resource-env-ref
message-destination-ref
locale-encoding-mapping-list
Filters
Servlets
Security
Sessions
Listeners
Listeners
Servlet Context Listener
Lifecycle
ServletContextListener
contextInitialized
contextDestroyed
ServletContextEvent
Attributes
attributeAdded
attributeRemoved
attributeReplaced
ServletContextAttributeEvent
ServletContextAttributeListener
Http Session Listener
Lifecycle
HttpSessionListener
sessionCreated
sessionDestroyed
HttpSessionEvent
Attributes
attributeAdded
attributeRemoved
attributeReplaced
HttpSessionBindingEvent
HttpSessionAttributeListener
Session Migration
HttpSessionActivationListener
HttpSessionEvent
sessionWillPassivate
sessionDidActivate
Object Binding Listener
HttpSessionBindingListener
HttpSessionBindingEvent
valueBound
valueUnbound
Servlet Request Listener
Lifecycle
ServletRequestListener
requestInitialized
requestDestroyed
ServletRequestEvent
Attributes
attributeAdded
attributeRemoved
attributeReplaced
ServletRequestAttributeEvent
ServletRequestAttributeListener