• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

welcome-file-list problem

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all!

I'm having a problem with tomcat configuration for default page redirect.

When receiving a request to http://localhost:8080/ I want to be redirected to http://localhost:8080/XXX/Logon.do

If the context of my web app is "/" than this works:
<welcome-file-list>
<welcome-file>Logon.do</welcome-file>
</welcome-file-list>

But if the context of my web app is "/XXX" than this doesn't work:
<welcome-file-list>
<welcome-file>XXX/Logon.do</welcome-file>
</welcome-file-list>

Once I'm using jboss, this codes are inserted into <jboss_home>/server/default/deploy/jbossweb-tomcat50.sar/web.xml wich corresponds to <tomcat_home>/conf/web.xml in a standalone tomcat.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What happens if you leave out the xxx/ leaving Logon.do
 
Bruno Santos
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
than it doesnt work
 
We don't have time to be charming! Quick, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic