You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tony Karas <to...@hotmail.com> on 2001/05/14 14:29:23 UTC

Comparing two dynamic values

I'm trying to compare a parameter value passed in as part of the URL with a 
bean value.  So I have something like this:

<logic:iterate id="element" name="retailerForm" property="retailers">
    <logic:match name="element" property="id" value="????">
        .....
        .....
    </logic:match>
</logic:iterate>

In the "value" field - it says in the documentation that this has to be a 
constant value - which is pretty useless to me.  I've tried:

value="<%= request.getParameter( "id" ) %>

but I get an error.  Should this be possible?  Anyone know if there is a 
more "Struts" way of doing it?

Cheers
Tony
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.