File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Loading of servlet ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Loading of servlet ..." Watch "Loading of servlet ..." New topic
Author

Loading of servlet ...

shikhar singh
Ranch Hand

Joined: Oct 02, 2000
Posts: 31
Hi,
I was just going thru the process of serving the client request by a JSP file, and during this I had few confusions:
1. When a JSP page is requested from a client, the JSP engine first looks for the servlet class for that JSP. If it is not there, it compiles the JSP page and creates a servlet class.
Then it creates the instance of this servlet class and loads it in the web server.(Tell me if I am wrong somewhere).
After this the JSPService method is called in which 'request and response' objects are passed.
If in JSP, with the help of usebean tag, instance of Beans are created like in :
<jsp:useBean id="email" class="com.folder.emailBean" scope = "sesseion"
My question is: when actually this instance is created when the user requests for a page and does Web container creates this instance?
2. For different requests from the client, does the web container creates the different instances of servlet class. If not can somebody explains how it works?
Thanks in advance
shikhar
shikhar singh
Ranch Hand

Joined: Oct 02, 2000
Posts: 31
Can somebody pl help me on this issue.
Thxs
Shikhar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading of servlet ...
 
Similar Threads
SingleThreadModel
Chapter 2 (HFSJ) notes , may be useful for anyone
MVC Architecture.
how web server communicates container?
MVC Architecture