The bean is later accessed in the inline Java code from the JSP. For more
discussion on beans, see Section 3.7,  Accessing data through a Java bean 
on page 103.
3.6.2 Implementation of JSP in our Web application.
This section describes the way in which we implemented JSP in our Web
application.
We opted to use a request to servlet response via the JSP approach. This is
illustrated in Figure 76.
Request
data
Servlet
base
callPage()
HttpSession
<%@ LANGUAGE= Java 
Response
JSP file
Figure 76. Request to servlet response via JSP approach
3.6.2.1 Invoking a servlet
Invoking a servlet from within a JSP is achieved by creating a URL that calls
the servlet. It has the following general form:
http://hostname:port/servlet/servlet_name
We called our servlets from within an HTML form and called them as follows:
Chapter 3. Building the Web server
101




  

Home

About Services Network Support FAQ Order Contact
 

Linux 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