wood burning stoves 2.0*
The moose likes Servlets and the fly likes default page 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
Bookmark "default page" Watch "default page" New topic
Author

default page

sushant prabhu
Ranch Hand

Joined: Mar 22, 2001
Posts: 66
How do i give a default webpage when any user visits the website
using Javawebserver or Tomcat or weblogic


Sushant Prabhu<br />SCJP2<br />SCWCD<br />OCA9i
khudiram Barik
Greenhorn

Joined: Feb 12, 2001
Posts: 17
In your web-inf directory look for web.xml where you can specify the following:-
<web-app>
<welcome-file-list>
<welcome-file>
yourfirstpageName
</welcome-file>
</welcome-file-list>
</web-app>
Different webserver may have different names for this web.xml, but we have to add the welcome-file-list. Try it out.
Thanks.
 
wood burning stoves
 
subject: default page
 
Similar Threads
what's the default action method for struts' html:form ?
enum constructors
integer literals
WA #2 ..... word association
body-content default?