Академический Документы
Профессиональный Документы
Культура Документы
Web server/servlet engine Check to see if the file has changed since last compiled
Existing servlet
Compile to a servlet
Trendsetters for the future
DIRECTIVES
Directives are elements that provide global information, about an entire JSP page. Three types of directives Page Directive Include Directive Taglib Directive
isThreadSafe=boolean
10
ACTION TAGS
Actions are used for encapsulating common tasks. Especially used to create objects of java beans. <jsp:include> <jsp:forward> Includes static and dynamic page. Dispatches the current page to another resource (html, servlet, jsp). Used to pass values using a name and value pair.
Trendsetters for the future 11
<jsp:param>
ACTION TAGS
<jsp:useBean> <jsp:setProperty> <jsp:getProperty> Associates an instance of a Bean. Sets the Value for the Bean Property Retrives the Value from the Bean Property
Trendsetters for the future 12
<jsp:include> Action
13
<jsp:forward> Action
<jsp:forward page= filename /> <jsp:forward page= filename > <jsp:param name=variable name value = variable value/ > </jsp:forward>
14
15
property value
17
JSP ERRORS
Two types of errors Translational errors : - occurs during the initial request. - Handled by jsp engine. Request time errors : - occurs during subsequent requests.
18