How do I write out template HTML to populate a FORM LIST object, from a
SQL query result set.

For example:

<sql:query var="clientResult" scope="page">
                select CLIENT_NAME from CLIENT
</sql:query>

// Now given that I don't know how many rows I will get back, I can't
write out N number of <option value=... Lines, and if I use a forEach
loop they will just get overwritten.
<form name="form1" method="post" action="">
  <select name="select">
    <option value="firstValue">firstLabel</option>
    <option value="secondLable" selected>secondLabel</option>
    <option value="thiredValue">thirdLabel</option>
  </select>
</form>

Now given that I don't know how many rows I will get back, I can't write
out N number of <option value=... Lines, and if I use a forEach loop
they will just get overwritten.

What is the technique to use here, or is there a special tag that will
do this?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to