<html>
  <body>
    <h1>Demonstration of pluggable ELResolvers</h1>
    <hr/>
    In JSP 2.1, you can plug in your own ELResolvers, which allows you
    to customize the behavior of resolving variables and properties in
    EL expressions.  This demo illustrates how a new resolver can be created
    that resolves \${Color} and properties on that object.
    <hr/>
    <table border="1">
      <tr>
        <td>EL Expression</td>
        <td>Result</td>
        <td>Color Sample</td>
      </tr>
      <tr>
        <td>\${Color}</td>
        <td>${Color}</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>\${Color[100][150][200]}</td>
        <td>${Color[100][150][200]}</td>
        <td bgcolor="${Color[100][150][200].hex}">&nbsp;</td>
      </tr>
      <tr>
        <td>\${Color.LightSeaGreen}</td>
        <td>${Color.LightSeaGreen}</td>
        <td bgcolor="${Color.LightSeaGreen.hex}">&nbsp;</td>
      </tr>
      <tr>
        <td>\${Color[100][100][100].darker}</td>
        <td>${Color[100][100][100].darker}</td>
        <td bgcolor="${Color[100][100][100].hex}">&nbsp;</td>
      </tr>
      <tr>
        <td>\${Color[100][100][100].brighter}</td>
        <td>${Color[100][100][100].brighter}</td>
        <td bgcolor="${Color[100][100][100].brighter.hex}">&nbsp;</td>
      </tr>
      <tr>
        <td>\${Color.MidnightBlue.hex}</td>
        <td>${Color.MidnightBlue.hex}</td>
        <td bgcolor="${Color.MidnightBlue.hex}">&nbsp;</td>
      </tr>
      <tr>
        <td>\${Color['#a0b0c0']}</td>
        <td>${Color['#a0b0c0']}</td>
        <td bgcolor="${Color['#a0b0c0'].hex}">&nbsp;</td>
      </tr>
    </table>
  </body>
</html>