Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 30-10-06, 09:43 PM   #1 (permalink)
Senior Member
 
Join Date: Aug 2006
Age: 28
Posts: 275
Thanks: 0
Thanked 5 Times in 5 Posts
Thanks: 0
Thanked 5 Times in 5 Posts
Rep Power: 5 radhika743 is on a distinguished road
What does loadonstartup in a web.xml file achieve?

What does loadonstartup in a web.xml file achieve?
radhika743 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31-10-06, 05:33 PM   #2 (permalink)
Moderator
 
t_mohan's Avatar
 
Join Date: Apr 2006
Location: India
Posts: 636
Thanks: 57
Thanked 78 Times in 63 Posts
Thanks: 57
Thanked 78 Times in 63 Posts
Rep Power: 17 t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold t_mohan is a splendid one to behold
Re: What does loadonstartup in a web.xml file achieve?

Hi Radhika,

If you want a servlet to be executed when your server is started or restarted then we'll be specifying the servlet name in the Loadonstartup tab in the web.xml file. Please refer the code below and try executing it and u'll find the difference



servlet
servlet-name>TestServlet/servlet-name
servlet-class>TestServlet/servlet-class
load-on-startup>1/load-on-startup
/servlet

Sorry, i didnot indent this thing because while displaying the string from the database, the people who has developed this thing didnot handle the escape sequences for the XML string i think so --- note it down administrators

Please let me know your questions

Thank You,
__________________
M0h@n

Last edited by t_mohan; 31-10-06 at 05:42 PM.
t_mohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-11-06, 05:25 PM   #3 (permalink)
Member
 
harikotha's Avatar
 
Join Date: Oct 2006
Posts: 66
Thanks: 2
Thanked 1 Times in 1 Posts
Thanks: 2
Thanked 1 Time in 1 Post
Rep Power: 3 harikotha will become famous soon enough
Re: What does loadonstartup in a web.xml file achieve?

Hi ,
U can control the creation of a servlet at the start up of server i mean if u specified 1 on load on startup tag for a perticular servlet then it will creates tht specific servlet first and then rest of the objcts will created by the server according to the no
i mean every web application may contains more than one servlet and u may write those servlets in any order and using u can control the creation of a servlet becoz we dont know tht when the server creates object for a servlet and for which servlet it creates








Quote:
Originally Posted by radhika743 View Post
What does loadonstartup in a web.xml file achieve?
harikotha is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 31-03-08, 05:46 PM   #4 (permalink)
Member
 
Join Date: Mar 2008
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 writetokaruna@yahoo.com is on a distinguished road
Re: What does loadonstartup in a web.xml file achieve?

the sub-element indicates the order in which each servlet should be loaded.Lower positive values are loaded first.If the value is nagative or unspecified, then the container can load the servlet at anytime during startup.


comments r welcome.

Regards,

R.P.Karunakaran.
writetokaruna@yahoo.com is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
interview Q&A asked in winrunner Spoorthi Testing Tools & QA 80 22-11-08 11:48 PM
OS performance abeetha.m OTHERS 3 17-11-06 12:43 AM
tips & tricks windows yathish Amazing TIPS & TRICKS 3 05-09-06 08:30 PM
Active@ File Recovery Software wizkid Latest Tech News & Innovations 0 11-08-06 02:35 PM
C Contest-28 keerthi DATA STRUCTURES, C, C++, VC ++ 6 01-07-06 11:04 PM


All times are GMT +6.5. The time now is 10:48 AM.





Search Engine Optimization by vBSEO 3.1.0