Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat does not take a welcomefile which is in a subdirectory in the 1

Status
Not open for further replies.

roopan27

Programmer
Feb 17, 2004
8
US
Hey,
I have my login page pgms_login.jsp in directory PGMS/jsp.
I want this page to be displayed when the url: is used.
PGMS is my application root directory.
I tried including /jsp/pgms_login.jsp in welcome file list.
But then it displays the page without images and without style sheets. My images and css directories are within the jsp directory.
Also even if I try to redirect to pgms_login through an index.html in the root PGMS directory same thing happens.
Does anyone know a solution for this?
 
sounds like your image/css links in your jsp are bad - make sure they are like so :
(if they are in th jsp folder)

<img src=&quot;/PGMS/jsp/image.gif&quot; ...

or if in an images directory

<img src=&quot;/PGMS/images/image.gif&quot; ...
 
Hey, that was not the problem.The relative paths to the image/css worked fine.looks like the prob was with index.htm though I'm not sure what it was.Anyways thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top