tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john-paul delaney ...@justatest.com>
Subject Re: NewB/Default Servlet:..rethink...
Date Mon, 18 Feb 2002 18:04:09 GMT
(Subject Was: NewB/Default Servlet:Can't find .gif)


On second thoughts.. with regard to this (my previous post) it may have been smarter to simply
ask what is the best way to generate a welcome page for a domain using a servlet...?

thanks/j-p.

 
> 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
> 

-----------------------
 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