Share on Google+Share on Google+

mln15584
web.xml - servlet
1 Answer(s)      8 years ago
Posted in : Java Beginners

Ads

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<
jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
/core cannot be resolved in either web.xml or the jar files deployed... be resolved in either web.xml or the jar files deployed with this application"... be resolved in either web.xml or the jar files deployed with this application
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
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
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
Tutorials   
Java Spring Hibernate Struts Training What does core Java include? java What are some way to learn Java quickly? Is it required to learn Java before learning Java Script? Is it necessary to learn java script before learning PHP? Are HTML5 and Java Script boosts Java career? Is Java object oriented? Fingerprint application with Java Uninstall Oracle Virtual Box JSON to HashMap Free Java online Training I want example of Control Statement in Java ANSI Color Codes with Python Create a Program that Calculates Input What is difference between JDK,JRE and JVM? How to see ubuntu version on server? How to get Page Source in Selenium (WebDriver) using Java? The path to the driver executable must be set by the webdriver.gecko.driver system property parse data from a link in java Java Program Qns using BlueJ How to fix HAX Kernel Module Is Not Installed error? Installing Audacity Looking for code Logic to check track changes & Coments in MSWord, MSWordx, MSExcel, MSExcelx is ON/OFF Installing JDK on Mac SAX Parser exception ERROR 601 (42P00): Syntax error. Encountered Thread java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory How to install Ubuntu 16.04 LTS? HttpServletRequest cannot be resolved to a type in eclipse - Solved Unhandled event loop exception GC overhead limit exceeded Spring Data jpa with apache phoenix Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF o.a.h.h.z.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum= com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager class not found com.thinkaurelius.titan.diskstorage.hbase.HBaseStoreManager not found How to download and install Java 8 on Windows? How to uninstall JDK 7? How to install gtk-doc-tools package in Ubuntu? How to install Oracle JDK 8 on Ubuntu? ejabberd_ctl.beam not found - Solved How to convert date to UTC format in Java? How to install autoconf, automake and libtool in Ubuntu 15.10? How to convert current date to mm dd yyyy format in Java? How to convert current date to dd mm yyyy format in Java? How to stop window closing in "internalFrameClosing" event. How to find list of all index in Neo4j? neo4j-server.properties file location SASLError using PLAIN: not-authorized how to convert war file into .exe file using java code

Ads

 
Advertisement null

Ads