This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

welcome-file in Tomcat 5.0

 
Thomas Bauer
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9117
75
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
 
Thomas Bauer
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic