Uses of JSP Constructs
Scripting elements calling 
Simple
servlet code directly
Application
Scripting elements calling 
servlet code indirectly (by 
means of utility classes)
Beans
Custom tags
Complex
Servlet/JSP combo 
Application
(MVC architecture)
115
JSP
www.corewebprogramming.com
Review: Calling Java Code 
Directly: JSP Scripting Elements
JSP Expressions
Format: 
<%= expression %>
Evaluated and inserted into the servlet's output. 
JSP Scriptlets
Format: 
<% code %>
Inserted verbatim into the _jspService method 
JSP Declarations
Format: 
<%! code %>
Inserted verbatim into the body of the servlet class
Predefined variables
request, response, out, session, application
Limit the Java code in page
Use helper classes, beans, custom tags, servlet/JSP combo
116
JSP
www.corewebprogramming.com
58




  

Home

About Services Network Support FAQ Order Contact
 

Java Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved