What I want to do is display 4 thumbnail pictures and there descriptions on the first page. Then if the user wants to see a larger picture, they would click on the thumbnail to view the larger image. I’ve used both action and elementaction in the link, but I’m not sure what the difference is. Here is my jsp to the view page, which displays 4 thumbnails and their descriptions.
<xapp:loop select=“/GLYPH” iterate=“EXAMPLES” targetbase=“/GLYPH/EXAMPLES”> <xapp:loop select=“.” base=“/GLYPH/EXAMPLES” targetbase=“/GLYPH/EXAMPLES/xapp:seq()”>
<xapp:display select=“$POS”/>.
<xapp:loop select=“.” iterate=“PIC_FILE” base=“/GLYPH/EXAMPLES/xapp:seq()” targetbase=“/GLYPH/EXAMPLES/xapp:seq()/PIC_FILE”>
<xapp:elementaction type=“select” base=“/GLYPH/EXAMPLES/xapp:seq()/PIC_FILE”>
<img src=“./images/<xapp:display select=“PIC_FILE”/>”></xapp:elementaction>
</xapp:loop><xapp:loop select=“.” iterate=“PIC_DESC” base=“/GLYPH/EXAMPLES/xapp:seq()” targetbase=“/GLYPH/EXAMPLES/xapp:seq()/xapp:child(2)/PIC_DESC”>
<xapp:display select=“PIC_DESC”/>
</xapp:loop></xapp:loop></xapp:loop>
As you can see, a link is created on each of the 4 pictures. But when I click on any of the picture links, I retrieve the first picture in the loop. Below is what I have in the hires.jsp:
xapp:module xapp:form <img src=“./images/<xapp:display select=“EXAMPLES/PIC_FILE[1]”/>”>
</xapp:form>
</xapp:module>
In the structure.xml file the hires is define liked this.
I have used both the display select and the loop select in the structure file. the loop select retrieves all the pictures when I click on any thumbnail. The display select only retrieves the first image. should I be setting up the structure file differently? or is there a way to send the hires.jsp the name of the thumbnail file in the link.
Thanks in advance,
smielke
[This message was edited by smielke on 31 Jul 2003 at 14:31.]
[This message was edited by smielke on 31 Jul 2003 at 14:34.]
#Tamino#API-Management#webMethods