You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by BARADAT Benoit <be...@cramif.cnamts.fr> on 2003/01/13 16:23:41 UTC
Display an option of a list with Nested
Hi !
I use the tag Nested Select for fill a list:
<nested:select property="rechercheInstancier.agent">
<nested:options property="rechercheInstancier.listeAgents" />
</nested:select>
I grab this tag to a bean "rechercheInstancier" with an Arraylist:
ArrayList listeAgents = new ArrayList();
To fill this ArrayList I use this instruction:
rechercheInstancierBean.addAgent(rs.getString("idAgent"));
My problem: I would like to display a value of a list:
With HTML I use the word "selected":
<select name="liste"
<option value="i1"selected>i1</option
<option value="i2">i2></option>
</select>
In this case I display "i1" on the screen.
How display i1 with the Nested ?
Tank in advance