• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Loading of servlet ...

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can somebody pl help me on this issue.
Thxs
Shikhar
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic