Thanks for the reply.  Tomcat version is 6.0.14.  

The trouble is that the home page is not static.  I'd access the page
through www.mydomain.com/app/home, but there is a mapping in my
spring-servlet.xml (i'm using spring) which maps this to the controller. 
The corresponding jsp and java classes all sit within WEB-INF.  Setting the
welcome page seems to work for static welcome pages only... is this true, or
am I doing something wrong?



Caldarale, Charles R wrote:
> 
>> From: mitalub [mailto:mita...@yahoo.com] 
>> Subject: Default Tomcat Page w/o Redirect
>> 
>> Currently, my home page is at 
>> http://www.mydomain.com/myappname/app/home.
>> 
>> I want to be able to access this page by going to just
>> http://www.mydomain.com, but without a redirect.
> 
> You didn't bother to tell us the version of Tomcat you're using, but if
> it's a reasonably recent one, you need to name your webapp ROOT (case
> sensitive), not myappname, for it to be the default webapp.
> 
> Home pages are normally in the base directory of the webapp, but if you
> insist on keeping your home page in an unusual location, set it in the
> <welcome-file> list in your webapp's WEB-INF/web.xml file; e.g.:
> 
>     <welcome-file-list>
>         <welcome-file>app/home/index.html</welcome-file>
>     </welcome-file-list>
> 
> using whatever the actual name of your home page is.
> 
>  - Chuck
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Default-Tomcat-Page-w-o-Redirect-tp22405664p22405937.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to