This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Tomcat and the fly likes welcome-file in Tomcat 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "welcome-file in Tomcat 5.0" Watch "welcome-file in Tomcat 5.0" New topic
Author

welcome-file in Tomcat 5.0

Thomas Bauer
Greenhorn

Joined: Jan 25, 2005
Posts: 6
Hi!

I use Tomcat 4.1.30 but want to change to Tomcat 5.0.
I deployed my webapp on it and everything works fine (if I type in the url manually) except the welcome page.
I use:


in my web.xml
The file jsp/Index.jsp creates a frameset that refers to pages relative to the directory "jsp/", so e.g.

The file "Client_Banner.html" is in directory "jsp/" and can be accessed by "jsp/Client_Banner.html", but as the Index.jsp is also in the dir "jsp" the path should be correct (and it works in Tomcat 4.1).
So what do I need to tell Tomcat that this works?

regards,

Thomas
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 4351

and what is the result:
- one page with text "page can't be found"
- one page with frames and each frame has text "page can't be found"


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Thomas Bauer
Greenhorn

Joined: Jan 25, 2005
Posts: 6
A page with frames and each frame cannot be found.
So the jsp/Index.jsp is evaluated and loaded but somehow the base folder for relative urls is still / instead of jsp/ (as Index.jsp is in jsp/)

I have "solved" the problem using a plain index.html with autoreload to jsp/Index.jsp now :-/

But what am I doing wrong with previous setup?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: welcome-file in Tomcat 5.0
 
Similar Threads
setting up new project
Tomcat 4 : How to deploy and run JSP and Servlets
Disabling listings of a directory
multiple welcome files.
Adding prelude-include seems to break default welcome file list