A
alan
HI all,
I am a newbie on Java servlet.
I have a problem on servlet.
My case is following.
I write a servlet to read JPG image files on server side and then post
each read image to client browser. (This server works fine.)
Here is a part of my java code to show images:
-------------------------------------------------------------------------------
for (int i = 0; i < imgQty; i++)
{
writer.println("<img src=\"..\\..\\test\\images\\" +
imgFileLink.elementAt(i) + "\"" + " width=15%>");
}
-------------------------------------------------------------------------------
I want to add a hyperlink on this image when client clicks this image,
there is a new client browser will be created to show the image
indiviually.
My problem is how can I do this? what should I add to my java servlet.
Could anybody give me some samples?
Pls help.
Thank you very very much.
cheers,
Alan
I am a newbie on Java servlet.
I have a problem on servlet.
My case is following.
I write a servlet to read JPG image files on server side and then post
each read image to client browser. (This server works fine.)
Here is a part of my java code to show images:
-------------------------------------------------------------------------------
for (int i = 0; i < imgQty; i++)
{
writer.println("<img src=\"..\\..\\test\\images\\" +
imgFileLink.elementAt(i) + "\"" + " width=15%>");
}
-------------------------------------------------------------------------------
I want to add a hyperlink on this image when client clicks this image,
there is a new client browser will be created to show the image
indiviually.
My problem is how can I do this? what should I add to my java servlet.
Could anybody give me some samples?
Pls help.
Thank you very very much.
cheers,
Alan