dispalying images in jsp

Hello Sir,

I am making my project in struts and java.

I am successfully uploading 2 images simultaneously, one is small and other is large image of this small image.

Now i want that on clicking small image large image should open in a new window.

Which concept should i use.

Plz help me in this.

I need this urgently.

Thanx in advance.

[385 byte] By [chahalkhushwindera] at [2007-11-27 6:06:11]
# 1
standard html should do the trickSomething like<a href="largeImage" target="blank"><img src="smallImage"></a>For the href of the largeImage/smallImage you may want to use a servlet or similar eg ImageServlet?image=large
evnafetsa at 2007-7-12 16:21:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

<script>

function viewLargeImage()

{

testwindow= window.open ("ViewLargeImage.jsp", "mywindow","location=1,status=1,scrollbars=1,width=200,height=200");

testwindow.moveTo(100,100);

}

</script>

<img src="test1.jpg" onclick="viewLargeImage();">

in ViewLargeImage.jsp

<html>

<body>

<img src="test2.jpg">

</body>

</html>

Prasad@AIPLa at 2007-7-12 16:21:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thanx a lot sir.but can i use thumnail image concept?someone is sugeesting me to use this.i m in dilema to use this or not?plz suggest...thanx a lot
chahalkhushwindera at 2007-7-12 16:21:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

use thumbnails on the overview page

so on overview you get:

alot of <img src="thumb_xxxxpicture.jpg" /> linking to a bigger picture without the "thumb_" in front of it

you will have to create 2 seperate pictures for each though (a thumbnail and the normal picture), but if you load the bigger picture into a smaller frame it will have no use since it will load the total amount of the picture anyways

radicjesa at 2007-7-12 16:21:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...