TODAY JAVA SCHOOL

In java school, programming, design, computer general knowledge, web application, software, web services, social media, digital marketing, oops, concept of programming language, oops feature, console media, graphics medium, first programming, c, c ++ , Java, PHP, SQL, MySQL, HTML, HTML_5, J_query, JavaScript, Bootstrap, Framework, images with logos, examples, shared and explained.

https://www.amazon.in/b?node=26373545031&linkCode=ll2&tag=1234567801cdb-21&linkId=3b9882431b00409b44141e0344b35a15&language=en_IN&ref_=as_li_ss_tl

Breaking

Monday 13 April 2020

welcome-File-List In Web.xml

welcome-file-list in web.xml

The welcome-file-list element of web-app, is used to define a list of welcome files. Its sub element is welcome-file that is used to define the welcome file.
A welcome file is the file that is invoked automatically by the server, if you don't specify any file name.
1.    welcome-file-list in web.xml
2.    index.html
3.    index.htm
4.    index.jsp

Example of Welcome-file-list-in web.xml


Fig: Welcome-file-list-in web.xml 

If you have specified welcome-file in web.xml, and all the files index.html, index.htm and index.jsp exists, priority goes to welcome-file.
If welcome-file-list entry doesn't exist in web.xml file, priority goes to index.html file then index.htm and at last index.jsp file.

   web.xml


       <web-app>  
       ....  
      <welcome-file-list>  
      <welcome-file>home.html</welcome-file>  
      <welcome-file>default.html</welcome-file>  
      </welcome-file-list>  
      </web-app>  

No comments:

Post a Comment