You dont put your image files in the SERVLET directory.   Your image files
go in the ROOT of the webserver.

The SERVLET engine takes away request from the webserver the has a
"/servlets/" front and looks in the directoy for it.   So your servlet
engine is looking for a servlet called "images", This bit will not be
processed as the engine looks for the first bit ----> "/backgrnd.jpg".  It
is not finding a servlet called that cause there is not a servlet there.
Therefore you get the error :

servlet not found:images

 You need to put you images in the directory of the webserver.   For example
I am using Apache.  So my files go in a directory called
"apache/mywebfiles/".  Servlets go seperatly in the jserver directory which
is the SERVLET engine.  "jserver/servlets/".

When a browser requests the file http://192.168.2.106/images/backgrnd.jpg
the server will look in "apache/mywebfiles/" for the file and then return
it.

Hope this explanation is clear.

Keith
---------------------------------------------------------------------------
Keith Ball - Praktikant
AF12 Operationelle  Analysen  Luftwaffe
IABG MbH                 Einsteinstr. 20              85521 Ottobrunn
Phone : 0049-89-6088-2556
Email : [EMAIL PROTECTED]                         WWW site : www.iabg.de
----------------------------------------------------------------------------

----- Original Message -----
From: RAHIMUNISA_N <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 18, 1999 9:22 AM
Subject: Re: DISPLAYING IMAGES USING HTML EMBEDDED IN SERVLETS


> hi pol,
> < body background=http://192.168.2.106:8080/servlet/images/Backgnd.jpg>
> it gives
> servlet not found:images.
>
> how to fix this  problem
>
> -----Original Message-----
> From: Pol Millan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 18, 1999 12:53 PM
> To: [EMAIL PROTECTED]
> Subject: Re: DISPLAYING IMAGES USING HTML EMBEDDED IN SERVLETS
>
>
> Because u need to use absolute urls, like
> http://www.dkdkd.com/images/xx.gif
> ----- Original Message -----
> From: RAHIMUNISA_N <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 18, 1999 7:44 AM
> Subject: DISPLAYING IMAGES USING HTML EMBEDDED IN SERVLETS
>
>
> > when i use an jpeg file for background
> > <body background=./images/pic.jpg>
> > it says
> > "servlet not found : images"
> >  how to solve this problem . i want all my images (jpeg,bmp,.. ) to be
> > kept in images dir.
> >   i know that servlet doesnot support gui . but my homepage has lot of
> > images which has lot of links .  how to display them ?
> >
> >
> ________________________________________________________________________
> ___
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources:
> http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ________________________________________________________________________
> ___
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to