This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Websphere and the fly likes make default.jsp as home page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "make default.jsp as home page" Watch "make default.jsp as home page" New topic

make default.jsp as home page

Ranch Hand

Joined: Jun 03, 2001
Posts: 47
How do we make default.jsp as initial first page instead of index.html to be shown when user enters a URL (http://localhost:9080/) in WebSphere. Do we need to make the changes while application deployment in either WebSphere Server or WSAD or both.
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
Edit the deployment descriptor, web.xml
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 364
you need to make the changes to both. As the previous post suggests, you must make a modification to the web.xml file:
Just put the default.jsp in the welcome-file-list.
Note that this will work fine with WAS 5.0. WAS 4.0 has what I call a bug but IBM calls an 'enhancement' where it will not work if the welcome file is a .jsp file. If you are using 4.0 and have this problem you will need to use the WelcomeFileServlet. Just do a search.
[ March 01, 2004: Message edited by: William Duncan ]

No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
I agree. Here's the link:
subject: make default.jsp as home page
jQuery in Action, 3rd edition