• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

In web.xml there is one tag <load-on-startup>1</load-on-startup>. ok

i suppose to give <load-on-startup>100</load-on-startup>.

what will happen.

please give the suggestion.

thank you...
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am pretty sure this is just a yes or no option where 1 = yes and 0 = no. What are you trying to accomplish?

- Brent
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Web container uses this number to determine the order in which to load servlets. If a <load-on-startup> tag is not specified, the servlet will not be loaded on startup. If only one servlet has a <load-on-startup> it doesn't matter what number appears: it will simply be loaded. If more than one servlet has a <load-on-startup>, the web container will load them in order from the lowest number to the highest.

So, in answer to your question: If servlet A has a value of 1 in <load-on-startup> and servlet B has a value of 100, all it means is that servlet B will be loaded after servlet A.
 
Paul Arockiaraj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Merrill Higginson,

I think i got the exact answer.

Thank you very much.

Yours luv
Paul
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic