Hi, I have a reqt wherein I need to display 2 or 3 cols in a table depending on condition. I m using struts2. Here is my sample code: <s:if test="a == b"> <td width="50%"> <!-- It means I need only two cols hence I m setting it as 50%--> </s:if> <s:else> <td width="33%"> <!-- It means I need only 3 cols hence I m setting it as 33%--> </s:else> print some data </td>
I m getting error in this code snippet. Any help is very much appreciated.