Hi Pusca,
As I understand the question, you want to call a servlet in your
img tag. So, the HTML code would be <img src="www....../abc">.
I have implemented the same for a perl cgi program and it did work
fine for the website. I.e. I called a perl cgi program in the src attribute.
So, it would work.
As for a good solution..... What would happen is that first the
page with the img tag would be downloaded to the client side and after that
the servlet in the img tag would be called for. So, your web page would be
displayed and the image would be displayed after sometime. So, the servlet
has to be fast. If your servlet in the img tag is going to take time, you
can try preloading of images before the web page is actually displayed.
Preloading of images is a java script implementation. If you do have to go
for preloading of images, you can check it out on jguru or some other
website. I don't seem to have any material on it right now.
Hope it helps.
Swapna.
-----Original Message-----
From: Pusca Ovidiu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:13 AM
To: [EMAIL PROTECTED]
Subject: img tag
Hi!
I'm interested to receive some detailed information about the using of an
img tag source (src) when calling a servlet from a web page. How this can be
done and is it a good solution when you receive thousands of requests in the
same time?
Thanks.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
___________________________________________________________________________
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