• Welcome to KonaKart Community Forum. Please login or sign up.
 

Multiple images.

Started by Mintxela, September 07, 2008, 07:56:55 pm

Previous topic - Next topic

Mintxela

I have changed my jsp to show multiple images for each product reading the imagepath from prod.getImage2() method.
My actual problem is hoy to send to ShowImageBody.jsp the selected image from ProductDetailsBody.jsp.
I tried to send a new parameter in the html: link but I´m having problems because that attribute is not set in TDL files.

Any other way to make this?
thanks.

pete

Within ShowImageBody.jsp doesn't it work if you change it to:

<html:link page="/SelectProd.do" paramId="prodId" paramName="prod" paramProperty="id"><img src="images/<%=prod.getImage2()%>" border......

Mintxela

not what I need.
what I need is to send the image I need to be displayed as a parameter in order to be able to enlarge each image.

pete

You could put the image you want, in one of the product custom attributes.

Mintxela

That was what I was trying now but.....
¿how can I set that?

<html:link page="/ShowImage.do" paramId="prodId" customfield1="????" paramName="prod" paramProperty="id" >
.....                              
</html:link>

pete

<html:link page="/SelectProd.do" paramId="prodId" paramName="prod" paramProperty="id"><img src="images/<%=prod.getCustom1()%>" border......