IT Community - Software Programming, Web Development and Technical Support

Servlet creation and servlet loading........

This is a discussion on Servlet creation and servlet loading........ within the Java Programming forums, part of the Software Development category; Pls anyOne Explain the difference between servlet creation and servlet loading.......


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-25-2007, 12:07 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Post Servlet creation and servlet loading........

Pls anyOne Explain the difference between servlet creation and servlet loading....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-25-2007, 12:12 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Default Re: Servlet creation and servlet loading........

Servlet can initialize when it recieves a request for that srvlet first time. This is called servlet creation.

The process of loading servlet before any request comes then this is called sevletloading
It loades with the help of <load-on-startup> attribute from the deployment descriptor
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-25-2007, 12:17 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Default Re: Servlet creation and servlet loading........

Servlet Loading: Bringing the class in the memory.
Servlet creation: Instantiating ang initializing the Servlet
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-25-2007, 12:18 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Default Re: Servlet creation and servlet loading........

hi
ServletLoading:
While running your Servlet class,classloader will read the information available in your servlet and places inside classArea(nothing but a memory created by JVM).

ServletCreation:
There are serval cases in creating servlet object.Genaral case is ,when your browser sends first request to the servlet ,the web-container will create the servlet object.
Web-container has the liberty when to create a servlet object and when to destroy it.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-25-2007, 12:22 AM
jeyaprakash.c jeyaprakash.c is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 228
jeyaprakash.c is on a distinguished road
Default Re: Servlet creation and servlet loading........

When browser make a request container find that the request is for servlet this time container create two object ie request and response this is know as creation ,and then the servlet thread is created and then all the initialization parameter is called this is known as servlet loading
__________________
thanx n regards
jeyaprakash.c
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF creation using PHP Senthilkumar PHP Programming 4 11-27-2007 07:01 AM
Can we write Construcror in Servlet? leoraja8 Java Programming 1 11-23-2007 09:51 PM
How to send data from servlet to javascript variables Pvinothkumar HTML, CSS and Javascript Coding Techniques 0 10-09-2007 11:05 PM
What is the Servlet Interface? Arun Java Programming 2 09-10-2007 04:35 AM
How to pass data (including JavaBeans) to a JSP from a servlet? anbuchezhians Java Server Pages (JSP) 1 08-01-2007 11:47 PM


All times are GMT -7. The time now is 11:27 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0