|
Hi,
I want to make a Servlet that realises a rotative
banner.
If in a static html page i put the
following:
<a href="MyServlet?action=href">
<img src="MyServlet?action=img">
</a>
Now i can write MyServlet to do a redirect if
action is "href"
and give back an image when the action is
"img".
My problem is that if the banner is about
Sun than the url
should be http://java.sun.com.
I have thought about using a session id when
serving the image and
use the session id when redirecting to
url.
But what about when the user browses in two
different windows (same session)
and retrives in both pages that have my banners on
it?
It is POSSIBLE to appair situations when the banner
is about something and by
clicking it to take you at completly other place
!
Does anybody know a solution to my problem
?
p.s. The HTML page must be static ( meaning no
jhml).
Thank You,
Andras.
|
