ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  JSP 2.0: The New Deal, Part 1
Subject:   Correction
Date:   2003-11-06 08:55:22
From:   niallm
Nice article. One quick correction...


<select name="artist">
<option value="1" ${param.artist == 1 ? 'checked' : ''}>
Vesica Pisces
<option value="2" ${param.artist == 2 ? 'checked' : ''}>
Cortical Control
<option value="3" ${param.artist == 3 ? 'checked' : ''}>
Vida Vierra
</select>


should be



<select name="artist">
<option value="1" ${param.artist == 1 ? 'selected' : ''}>
Vesica Pisces
<option value="2" ${param.artist == 2 ? 'selected' : ''}>
Cortical Control
<option value="3" ${param.artist == 3 ? 'selected' : ''}>
Vida Vierra
</select>

1 to 2 of 2
  1. Correction
    2007-09-10 23:22:38  jspform [View]

  2. Correction
    2003-11-10 08:48:04  Hans Bergsten | O'Reilly Author [View]

    • Chris Adamson photo Correction
      2003-11-10 11:11:01  Chris Adamson | O'Reilly AuthorO'Reilly Blogger [View]

      • Correction (almost there)
        2003-12-10 12:50:42  anonymous2 [View]

1 to 2 of 2