Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

make default.jsp as home page

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edit the deployment descriptor, web.xml
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic