I want to display various data in Display Tag column according to what I get from Session.
How can I integrate switch case with display tag <display:column>
?
I want to display AAA if the unit value I get from session is 1 etc.
Here is what I want to do.
switch(List.unit){
case 1:
unit = "AAA";
break;
case 2:
unit = "BBB";
break;
case 3:
unit = "CCC";
break;
default:
unit = "undefined";
break;
}
Thanks ahead.