Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

welcome-file-list problem

 
Bruno Santos
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
than it doesnt work
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic