hello,
I have a Struts form-bean which contains a HashMap. The keys of this
hashmap is an object of type GeSectionComponent. In my jsp, I iterate
over a collection of these GeSectionComponents. For each iteration, I
would like to lookup in the HashMap to retrieve the value corresponding
to the GeSectionComponent. Does anyone have an idea of how to do this?

I have bee trying to use the JSTL c:set-tag to be able to use the
GeSectionComponent as a variable in my jsp, but I can't seem to get it
to work. Absolutely non-working code looks something like:

<logic:iterate id="geSectionComponent" name="initialReportForm"
property="geSectionComponents">
        <c:set var="comp" value="????"/>
        <jsp:useBean id="comp"
type="com.acme.ge.generated.GeSectionComponent" />
        <% ????.getPowerLimits(comp); %>
</logic:iterate>

My form contains a getter for the HashMap:

    public HashMap getPowerLimits() {
        return powerLimits;
    }

any help would be appreciated!

cheers,
pj



Statnett SF, Tel. head office +47 22527000, Enterprise No. NO 962 986 633 VAT, 
www.statnett.no, [EMAIL PROTECTED]
_________________________________________________________________

This e-mail and any attached files are confidential and may be legally 
privileged. If you have received this transmission in error please notify the 
sender by reply e-mail immediately and then delete the e-mail.
E-mail transmission cannot be guaranteed to be secure or error free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete. If verification is required please request a hard copy version. 
This e-mail message has been virus checked by the virus programs used by 
Statnett SF.

Reply via email to