tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john-paul delaney ...@justatest.com>
Subject NewB/Default Servlet:Can't find .gif
Date Mon, 18 Feb 2002 17:32:14 GMT

Hello List...


NEWBIE:  I want to generate the welcome page for my domain so I mapped a test servlet to "/"
in the web.xml for my context.

PROBLEM:  A test.gif image is not rendered by the servlet - as it appears the path is not
found.

OBSERVED:  If I map the servlet instead to "/intro" then the test.gif is rendered ok.

TRIED:  Using various path combinations"/test.gif", "test.gif" etc - no result.

NOTE:  I've read some postings advising locating files should be done as in InputStream [getResourceAsStream()].
 Is it applicable in this case when all I want is a simple 
	out.println( "<img src=\"/test.gif ... etc )?

Your advice greatly appreciated

/j-p.
	

-----------------------
 JUSTATEST Art Online
  www.justatest.com




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message