Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners web.xml - servlet
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


mln15584
web.xml - servlet
1 Answer(s)      6 years and 3 months ago
Posted in : Java Beginners



Advertisement
View Answers

October 7, 2008 at 12:58 PM


Hi friend,


<load-on-startup>1</load-on-startup>

Is it indicate order of servlet to be loaded or number of instances

Tha't the order in which the Servlet will be loaded by the container.

1 will be the first
2 will be the second


The <load-on-startup> element of a deployment descriptor is used to load a servlet file
when the server starts instead of waiting for the first request.
It is also used to specify the order in which the files are to be loaded.
The <load-on-startup> element is written in the deployment descriptor as follows:

<servlet>
<servlet-name>ServletName</servlet-name>
<servlet-class>ClassName</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

Thanks


Related Tutorials/Questions & Answers:
web.xml
web.xml  what is web.xml file..? explain its types..?   The web.xml file is important file for j2ee application. this file is also called the deployment descriptor. When you web application started the web server reads
web.xml
web xml  which url address is given in web.xml?   When using prefixes in XML, a so-called namespace for the prefix must be defined. The namespace is defined by the xmlns attribute in the start tag of an element
Advertisements
Access web.xml init parameters
Access web.xml init parameters  How to access web.xml init parameters from java code
What are the elements in the deployment descriptor(web.xml)?
What are the elements in the deployment descriptor(web.xml)?  What do the following elements in the deployment descriptor(web.xml)are: ??.. ?.. ??? ?
Assembling web.xml from fragments
This section contains detailed description on assembling web.xml from web fragments with an example
loacation of errorpage in web.xml for 404 error
loacation of errorpage in web.xml for 404 error   The webpage cannot be found HTTP 404 Most likely causes: ?There might be a typing error in the address. ?If you clicked on a link, it may be out of date. What you
web.xml - XML
web.xml  Can you please help me to create web.xml I tried.... Is there any thing wrong with this web.xml otherwise please help me... Thanks...; Hi friend, Servlet and JSP Examples
Configure Js request in Web.xml
Configure Js request in Web.xml  Hi all, I have 1 basic doubt,suppose i have 2 jsp,1 servlet,1 web.xml file.i need to redirect 1 page via servlet with help of web.xml file.Here just i need to redirect to mainCtrl.java
How to Configure Spring in web.xml file ?
How to Configure Spring in web.xml file ?  How to Configure Spring in web.xml file ?   Hi you need to map the DispatcherServlet in web.xml as <servlet> <servlet-name>dispatcherServlet<
Getting Init Parameter Names
values which we have given in the web.xml file. Whenever the container makes a servlet it always reads it deployment descriptor file i.e. web.xml.... GettingInitParameterNames. The container calls the servlet's service
Getting Context Parameter Names
. In web.xml, do the following: <servlet> <servlet-name>... in the web.xml file. ServletContext is a interface which helps us to communicate with the servlet container. There is only one Servlet Context for the entire web
servlets
servlets  which url address is given in web.xml
Question
Question  which url address should be given in web.xml
wexml for jsp
wexml for jsp  an exaample for web.xml for sample jsp program
struts.xml - Struts
struts.xml  I have tried again and again, but somehow, my web.xml is not able to find struts.xml. Where should I be placing struts.xml?? The filter tags in web.xml are correct. Thanx
xml
xml  how to creatte html file and validate using java and finally i need get web.xml file
saritha project - Struts
in the web.xml
saritha project - Struts
in the web.xml
The server encountered internal error() - Struts
the problem in struts application. Here is my web.xml MYAPP... in either web.xml or the jar files deployed with this application In my index.jsp... in web.xml since the error said it's in web.xml? In the jar files, I've already pu
Session Timeout
Session Timeout  Hi, we are using JBoss 4.0.2 I have edited the jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml I...... the below is the snip from my web.xml file <session-config> <session
To Develope an Website
, please help me. What I did is I had created two XML files, web.xml and sampleproject.xml, I put that web.xml file under the webinf folder another
Struts 2.0- Deployment - Struts
1.5 Tomcat 6.0  Hi friend, Check your config of Web.xml.../struts/struts2/ Thanks   I placed correct web.xml only. For first time I
session management - JSP-Servlet
think i am not using session management properly. and also in my web.xml file i... u my code. WEB.XML:- 1 like this i specified in web.xml and in my signout.jsp file:- signout page
Exception handling through Struts - Struts
tag to my web.xml file but still I am getting errors on the screen. It is not showing me that error page whatever I have entered in my web.xml My web.xml
how to use jstl tags?
in either web.xml or the jar files deployed with this application
jsp question..
jsp question..  what should do in deployment descriptor after adding jstl jar files.. I am the the following message in console screen; The absolute cannot be resolved in either web.xml or the jar files deployed
jsp question..
jsp question..  what should do in deployment descriptor after adding jstl jar files.. I am the the following message in console screen; The absolute cannot be resolved in either web.xml or the jar files deployed
jsp
jsp   <% out.println("hello");%> i have writtn this program .but i am not getting way to deploy it.As in ma weblogic at the time of installation web.xml descriptor problem was there so i am doin exploded deployment.so
Cohabitation struts 1 and 2 - Struts
Cohabitation struts 1 and 2  Hi, I have a problem with the cohabitation of struts 1 and 2. I work on a web application which used struts 1. But i must add some functionality in struts 2. When i modify my web.xml file
deploymnet problem - Struts
deploymnet problem  I am shifting from struts1 to strus2 , what all required for it? When I changed my web.xml I am not able start my application in tomcat server? Why? Error:Fail-Application at context path /myproject
Open a .doc file by click on the link using struts - Struts
Open a .doc file by click on the link using struts   I want to open a doc extension file when i click a link on jsp page .I know only about which is write in web.xml but not exactly know how i do this.Plz any one can help me
Advertisements
 

 

 

DMCA.com