I am trying to dynamically generate a selection box within a JSP page.  If
I use the JSP extract below using the $(bean... syntax I
get the error :

"An index must be specified for indexed property deviceIPAddress in bean
class DeviceBean"

Without the enclosing <INSERT> tag, the HTML generated for the <option
value... line is :

<option value=$(bean=deviceBean property=deviceIPAddress)>1.2.3.4

The second bean tag which is not embedded inside an HTML tag works fine.

Could someone please tell me what is the correct syntax to use to pass the
index value into the first bean tag?

Thanks,

Scott.

JSP Extract -
<table cellpadding=10 bgcolor=#01C0C0>
<tr align=left>
 <th valign=top>Pick Device(s): </th>
 <td>
 <INSERT>
  <SELECT name=DeviceSelection MULTIPLE SIZE=10>
  <REPEAT INDEX=i START=0 END=10>
  <option value=$(bean=deviceBean property=deviceIPAddress)>
  <INSERT BEAN="deviceBean" PROPERTY="deviceIPAddress"></INSERT>
  <br>
  </REPEAT>
  </SELECT>
 </INSERT>
 </td>
</tr>
</table>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to