tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john-paul delaney>
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

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



To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message