Tuesday 18 March 2014

Servlets : Web xml - Welcome file list


Click here to watch in Youtube : https://www.youtube.com/watch?v=2sxHs1m870U

web.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  <display-name>WelcomeApp</display-name>
 
  <welcome-file-list>
    <welcome-file>book.html</welcome-file>   
  </welcome-file-list>
  
  
</web-app>

book.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<!DOCTYPE HTML><html lang="en"><head>
<meta charset="UTF-8">
<title>book html</title>
</head>
<body>
<p>
<h3>book html</H3>
<p></p>

</body></html>

index.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<!DOCTYPE HTML><html lang="en"><head>
<meta charset="UTF-8">
<title>Index html</title>
</head>
<body>
<p>
<h3>Index html</H3>
<p></p>

</body></html>

To Download WelcomeApp Project Click the below link :

https://sites.google.com/site/javaee4321/servlets/WelcomeApp.zip?attredirects=0&d=1

Click the below Image to Enlarge
Servlets : Web xml - Welcome file list
Servlets : Web xml - Welcome file list



























See also:

  • Servlets Tutorial
  • All Design Patterns Links
  • No comments:

    Post a Comment