Bookmark Topic Watch Topic
  • New Topic

welcome file list

 
sojan chandy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi i have given welcome-file-list as

<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>

i only get a blank page when i give

http://localhost:8080/test/
------------------------------------------------------------------------------------------
my html page code....
<html>
<head>
<title>Welcome<title>
</head>
<body>Hi SOJAN</body>
</html>

page name index.html
____________________________________________________
This is my full web.xml file
____________________________________________________

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>



<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>hello.HelloServlet</servlet-class>

</servlet>


<servlet>
<servlet-name>s</servlet-name>
<servlet-class>sojan.s</servlet-class>

</servlet>

<servlet>
<servlet-name>ServletUtilities</servlet-name>
<servlet-class>hall.ServletUtilities</servlet-class>

</servlet>
<servlet-mapping>
<servlet-name>ServletUtilities</servlet-name>
<url-pattern>/hall</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>

</web-app>
______________________________________________________
and i have saved my index file in root folder i.e. ...test folder under webapps

thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic