File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 363
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
Similar Threads
how to extract url from url and extract...
EJB and direct update of DBs
jsp -> Servlet -> jsp
WebSpehre Portal 6.1 - Customizing theme as per PortalWeb2
Do we need Websphere edge server to cluster the websphere application server?