This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Oops, merrill is right, missed the getter. Should look like this:
Sorry about that! [ June 10, 2005: Message edited by: Eric Fletcher ]
Joined: Feb 15, 2005
A couple more things on this:
I just noticed that in order for my suggestion to work, you will also have to add type="<<fully qualified name for the Part class>>" to the logic:iterate tag. Otherwise, the part variable will be of type Object, and you will have to cast it before using its getPartName() method
Struts tags have an "all or nothing" policy toward scriptlets, which means that if you substitute an attribute value with a scriptlet, either all of it has to be in a scriptlet, or no part of it should be a scriptlet. Given this policy, I don't think Eric's suggestion will work in this situation.
I hope this helps. [ June 10, 2005: Message edited by: Merrill Higginson ]
Joined: Apr 29, 2005
Hey Merrill and Eric.
Thanks for your help, it works now. I had to use the type-attribute of the iterate-tag and the syntax Merrill posted!