You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rea, Ron" <re...@coramhc.com> on 2002/08/26 23:47:43 UTC
Display of label associated to drop-down
Hello,
I have created a drop-down using a collection that contains a therapyCode
and a therapyDesc. The following snippet of JSP code will allow the
selection of the therapyCode in the drop-down, but - once the therapyCode is
selected from the drop-down - I want to display its associated therapyDesc
next to it in a Label field. Has anyone had to do this?
==
Table
======
therapyCode
therapyDesc
Collection: therapyArrayList
===========================
therapyCode
therapyDesc
Code to display drop-down:
<html:select property="therapyCode1" size="1">
<html:options collection="therapyArrayList"
property="therapyCode"
labelProperty="therapyCode"/>
</html:select>