File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts

 
Paul Arockiaraj
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • 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...
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Merrill Higginson,

I think i got the exact answer.

Thank you very much.

Yours luv
Paul
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic