I would have thought that you are going to have to try and read the first
element of the Collection prior to the iterate tag, and store the first
element in the page context so that you can use its name and desc attributes
to populate the table caption.
You could try with tags but I would use a
Alex,
Hi. Just a thought - why don't you take out the first row and place it as
another item in your form bean before you get to the page?
Not ideal, but would work!
Dave
Alex Colic [EMAIL PROTECTED] on 10/04/2001
08:16:52 AM
Please respond to [EMAIL PROTECTED]
To: Struts [EMAIL
To get the first element of the Vector set the length=1 in the iterate tag
for example:
logic:iterate id=currRecord name=beanName property=vectorName
length=1
bean:write name=currRecord property=name/
bean:write name=currRecord property=desc/
bean:write name=currRecord property=price/
Thanks for all the help. I got it working.
Alex
4 matches
Mail list logo