This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts doubt" Watch "Struts doubt" New topic
Author

Struts doubt

sri dande
Greenhorn

Joined: Jul 26, 2005
Posts: 3
we have only one servlet called ActionServelet in struts.
so if u see this..generally servlets follow multithreaded model .
i.e only one instance and n number of threads will be created.
thats fine...
but why we are specifying that
<load-on-startup>3</load-on-startup>
which is going to create 3 servlet instances...

little bit confusing..
can u clarify me.plzzzzzzzzz

srinivas Dande
Independent Java Consultant
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

That number is the loading priority, not the number of instances.


A good workman is known by his tools.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts doubt
 
Similar Threads
Struts
load-on-startup of servlet tag in DD
Struts Exception.......
Combining two different struts modules of a big application
Problem regarding Struts+Spring+hibernate