this log page
JDBC investigations from tomcat-docs.
jdbc:Microsoft:sqlserver://my-virtualserver:1433;DatabaseName=Pubs
servlets: service(), init(), destroy()
jsp: is simply a HTML page with additional tags written in manner:
<%[symbol] tag attrs %>
and to be preprocessed by java. So the simplest jsp is html. Possible symbols are:
@ is common properties of a page (pageEncoding="windows-1251"; extends="full name of extending class"; session="true/false" - is needed a session creation?; buffer="Nkb or none" - output buffer size in kb; errorPage="fullUrl relatively to context" if some exceptions occured;
= is an expression
! is future servlet method or member
-- is a comment actually ;-). Should be placed also at the end of the tag
jsp tag without symbol is called scriptlet and to be placed into _jspService()
JSP EL is the Expression Language. Just type something in expression jsp tag in brackets followed by $:
${ your java expresion }
Here (in JSP EL) you can use some predefined variables:
pageContext - instance of PageContext
pageScope - Map instance containing page parameters and their values
requestScope
sessionScope
applicationScope
param - Map instance containing params to be got by ServletRequest.getParameter( String name )
paramValues
header - ServletRequest.getHeader( String name )
initParam
cookie
Every JSP page contains built-in 9 objects:
request
response
config
application
session
pageContext
out
page
exception