aspose file tools*
The moose likes Tomcat and the fly likes welcome-file-list problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "welcome-file-list problem" Watch "welcome-file-list problem" New topic
Author

welcome-file-list problem

Bruno Santos
Greenhorn

Joined: Nov 11, 2004
Posts: 7
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

Joined: Mar 22, 2000
Posts: 12835
    
    5
What happens if you leave out the xxx/ leaving Logon.do
Bruno Santos
Greenhorn

Joined: Nov 11, 2004
Posts: 7
than it doesnt work
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: welcome-file-list problem