C lie n t
W e b   S e r v e r   ( e .g .  A p a c h e )
S e r v le t  C o n ta in e r   ( T o m c a t)
C h e c k  
r e q u e s t e d  
p a g e   t yp e
d y n a m ic
 A llo c a t e  n e w  
t h r e a d
s ta tic
W e b   b r o w s e r
R u n   s e r v le t  
s e r v ic e ( )  
S e r v e   H T M L  
m e t h o d   in  
p a g e
t h r e a d
G e n e r a t e  
H T M L  
d yn a m ic a lly
Figure 3: Interoperation Client / Web Server / Servlet Container 
3.1.2  The Servlet Container 
The Servlet Container, as illustrated by Figure 3, receives the HTTP request for a dynamic page 
from the Web server, and is then responsible for invoking the servlet and returning the 
generated response to the Web server. Exactly how the Servlet Container processes the 
requests can vary from implementation to implementation. However, an efficient and therefore 
common implementation of a Servlet Container is shown in Figure 4. 
25 




Java Web Hosting Application Development Using Java Technologies Hosting




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