Dynamic Content / Conditional Content Example using Java Server Pages (JSP) |
When using conditional content, content is only returned to the Mail Composer for the criteria that has been met.
<HTML> <% if (state.toUpperCase().equals("CA")) {%> <br><br> <center> <table> <tr> <td> <b> San Francisco </b> </td> <td> 1833 Lombard St. </td> </tr> </table> </center> <br><br> <%}%> <% if (state.toUpperCase().equals("NY")) {%> <br><br> <center> <table> <tr> <td> <b> New York </b> </td> <td> 445 Park Ave. </td> </tr> </table> </center> <br><br> <%}%> </HTML>