hi Frineds
i have a problem that based on one field value i should display some fields 
for that i need to check <bean:write /> value...
for example if no lunch break, i should not display lunch from and lunch to
fields otherwise i should display ?
how can i do this ?
this is the way i did, but it is not working..........
(i set ArrayList withthe name "COLLEGEDETAILS" to request object  )
--------------------------------------------------------------------------
<logic:iterate id="college" name="COLLEGEDETAILS">
<tr>    
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.collegeStartTime"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="collegeStartTime"/></td>
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.collegeEndTime"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="collegeEndTime"/></td>
                                                                                
</tr>
                                                                                
<tr>    
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.weeklyWorkingDays"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="weeklyWorkingDays"/></td>
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.noLunch"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="noLunch"/></td>
                                                                                
</tr>
                                                                                
<%
                                                                                
        if("N".equals(<bean:write name="collegeDetails"
property="noLunch"/>))
                                                                                
        {
                                                                                
%>
                                                                                
<tr>    
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.lunchFrom"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="lunchFrom"/></td>
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.lunchTo"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="lunchTo"/></td>
                                                                                
</tr>
                                                                                
<%
                                                                                
        }
                                                                                
%>
                                                                                
<tr>    
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.noOfPeriods"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="noOfPeriods"/></td>
                                                                                
        <td class="tdborder1" width="100"><bean:message
key="label.periodDuration"/></td>
                                                                                
        <td class="leftsubheading1" width="210"><bean:write
name="college" property="periodDuration"/></td>
                                                                                
</tr>
                                                                        
</logic:iterate>

-------------------------------------------------------------------------
let me know please........

ur's
Mallik
 
-- 
View this message in context: 
http://www.nabble.com/if%28%22N%22.equals%28%3Cbean%3Awrite-name%3D%22college%22-property%3D%22noLunch%22-%3E%29%29%2Ccan-I--tf2545551.html#a7093036
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to