Mallik/Dave be aware of upperCase/lowerCase lexical compares you can use a variable which stores the param and then test the value later on as in.. <c:set var="parameterVal" value="${param[" NoLunch"]}" />
<!-- % if( "N".equals( <bean:write name="collegeDetails" property="noLunch"/> )) { % --> <% if ("N".equals(parameterVal)) %> Anyone else? Martin -- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents ----- Original Message ----- From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Tuesday, October 31, 2006 8:06 AM Subject: RE: if("N".equals(<bean:write name="college" property="noLunch"/>)),can I? From: Mallik [mailto:[EMAIL PROTECTED] > how can i do this ? I have taken the liberty of formatting your included code to a) be left-aligned, thus a bit more readable and b) including only the information necessary to answer your question. Any errors introduced by this reformatting are mine and I apologize if it is now more difficult to meet somebody's byte quota for the day. > <logic:iterate id="college" name="COLLEGEDETAILS"> > <% > if ("N".equals(<bean:write name="collegeDetails" property="noLunch"/>)) { %> > <!-- Do something based on comparison. --> > </logic:iterate> You may want to look at the <logic:equal...> tag. http://struts.apache.org/1.2.x/userGuide/struts-logic.html#equal I'd consider using JSTL, though. Mind you, you don't actually say what doesn't work, so much beyond this will be problematic, but I am also suspicious of referencing both "collegeDetails" and "COLLEGEDETAILS". Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]