wood burning stoves 2.0*
The moose likes JSP and the fly likes Servlet of a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Servlet of a JSP" Watch "Servlet of a JSP" New topic
Author

Servlet of a JSP

yash Vi
Ranch Hand

Joined: Jul 17, 2005
Posts: 41
We all know that a JSP page is converted to a Servlet.how many servlets will be present for a JSP page servicing multiple clients


Thanks for your reply and time.<br />Windows 2000,j2sdk1.4.2_08
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

1


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
yash Vi
Ranch Hand

Joined: Jul 17, 2005
Posts: 41
Thank you for the information.Can you please explain how it works or please give some links which give explanation on the same
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
And the award for the world's shortest, yet correct, answer goes to Bear!


“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
When a JSP is compiled into a servlet, only one servlet is made. This will then act like every other servlet, where a new thread is started for each request.

If you are still curious about how this works, check out this post from the Servlets forum or look at the servlet specs themselves.
yash Vi
Ranch Hand

Joined: Jul 17, 2005
Posts: 41
To be clear,The JSP Page is converted to one servlet but many servlet Instance.If I havent got it wrong
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

No, one servlet instance that handles one thread per request.
Servlets are multi threaded.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
wood burning stoves
 
subject: Servlet of a JSP
 
Similar Threads
Reports in JSP
how to execute a jsp page
what is precompiling a JSP page
current date
How to run a JSP Page