Hi Nicole
Are you using a static html page with a tag to the servlet for the image?
If you are using a jsp or a servlet, at the time of sending the response,
the servlet would know which image to send. So, if you do an out.println for
the link, shouldn't that work?
Vijay
----- Original Message -----
From: "Nicole Ruschmaritsch" <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 9:01 PM
Subject: Re: create dynamic img-url from servlet
> Hi Matt,
>
> no. The servlet gives back the URL of the image that should be displayed
as a string. So the header is set "text".
> When I call the servlet directly in the browser
:http://myserver.de/servlet/myservletsrc I get as output :
http://myotherserver.de/images/test.gif for example, only the URL-String,
not the img-file.
> So we thought, if we call the servlet in the src-Param of the img -TAG,
the browser loads the *IMAGE* which actually is a servlet, that returns the
URL of the image, that should be loaded.
>
> But the servlet doesn't seem to be loaded in the img-TAG, it is loaded as
an image, which of course doesn't work...
>
> I'm not quite sure if this works the way we want it to?!?! Or do you have
another idea, how we can get a image with a dynamic source via servlet?!?
>
> Thanks
>
> nicole
>
>
> ----- Original Message -----
> From: Matthew L. Wright
> To: JRun-Talk
> Sent: Monday, July 16, 2001 11:20 AM
> Subject: Re: create dynamic img-url from servlet
>
>
> This may or may not be the issue. I'd really need more details on the
> situation.
>
> Are you setting the header as an jpg/gif type on the servlet you're
loading
> for the image or however you may be doing it?
>
> Matt
>
> Matthew L. Wright
> Java Internet Programmer
> Jupiter One
> Web World Studios West Coast
> www.jupiterone.com
> (818) 763-2927
> ----- Original Message -----
> From: "Nicole Ruschmaritsch" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, July 16, 2001 2:15 AM
> Subject: create dynamic img-url from servlet
>
>
> > Hi everyone,
> >
> > I've got a problem:
> >
> > I want to get a dynamic URL from a servlet for displaying a dynamic
image
> in a static html-page:
> >
> > <a href="/servlet/myservleturl>
> > <img src=/servlet/myservletsrc>
> > </a>
> >
> > The a href is interpreted correct. When I click on it, the servlet is
> doing a redirect to some other random page. But in the img-tag the
servlet
> doesn't seem to be called, the browser wants to load the servlet as an
img.
> >> Img not found-Error!
> > When I call the servlet directly by the URL in the browser, I get the
> correct URL of my img: http://myserver.de/img/img1.gif as output. But
this
> url doesn't seem to be given back to the img-Tag, when I call the
servlet in
> a static html-page as shown above.
> >
> > Any ideas?!?!
> >
> > Thanks in advance
> >
> > nicole
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists