• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

welcome-file in Tomcat 5.0

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic