This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: default page