Thursday, 29 August 2013

Proerties and dynamic values for display

Proerties and dynamic values for display

In the below code, is it possible to get the value (Value='ABC' or 'CDE' )
dynamically?.
<logic:equal name="screen1" property="prefix" value="ABC">
<td colspan="7">&nbsp;</td>
</logic:equal>
<logic:equal name="screen1" property="prefix" value="CDE">
<td class="fldlabel"><bean:message key="label.Group"/></td>
<td colspan="5">&nbsp;</td>
</logic:equal>
In example, I need to implement below logic
if prefix (ABC, LMN, EYX, FDG ) then display text box1 else prefix (GGG,
RRR, RRR, MMM ) then display text box 2 else display nothing.
Please help me to fix this.
if i have function to find like below would be better
if (ABC, LMN, EYX, FDG ) then category 1
if (GGG, RRR, RRR, MMM ) then category 2 .
then i can display the text box based on category.

No comments:

Post a Comment