This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes welcome file list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

welcome file list

sojan chandy
Greenhorn

Joined: Mar 18, 2007
Posts: 24
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

Joined: Jan 10, 2002
Posts: 60749
    
  65

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: welcome file list
 
Similar Threads
welcome file list
Failed to load or instantiate TagLibraryValidator
Problem deploying-accesing a single servlet webapp in Tomcat 5
welcome file list
Servlet Not working