JSP Key Concepts 1
Directives: page, include, taglib
Scripts: Scriptlet <% %>, Expression <%= %>, Declaration <%! %>
Action Tags: include
forward
useBean
setProperty
getProperty
Built-in Objects: pageContext - My page: created first among built-in objects -> creates other built-in objects
Holds information, properties, and shared data of the JSP within that JSP.
(setAttribute, getAttribute, removeAttribute)
request - Request: from browser/user
response - Response: from server
out - Creates buffer for holding response data
session - Login information
application - Shares all objects within the web app = servletContext
(Refers to web.xml: (Eclipse project path/WEB-INF/web.xml): used in the application)
config - Holds initialization reference information when the application starts within the servlet container.
servletConfig can be obtained from pageContext.
(Refers to web.xml: (Tomcat installation path/conf/web.xml): used in all web apps)
page = JSP page: used with the "this" keyword
+ typed as Object so it can reference JSPs of other servlets as well.
(Content written in JSP is converted to a servlet and stored in the service method.)
exception - Exception object
