Hi!
You would normally populate the list in an action not in the jsp.
Tamas
On 9/13/05, starki78 <[EMAIL PROTECTED]> wrote:
>
> Hi if have the following simple example.
> A Hashtable is created and used for a options-list.
> Is it possible with bean:define to create the
> Hashtable without java-code?
> When does it make sense to use the bean:define tag in this example
> or generally?
>
> Thanks a lot for suggestions
> Starki
>
>
>
>
> <html>
> <head>
>
>
> <% java.util.Hashtable list = new java.util.Hashtable();
> list.put("1","test");
> list.put("2","test2");
> list.put("3","eee6");
>
>
> session.setAttribute("list",list);
>
> %>
>
> <html:form action="/lookupdispatch" >
> <html:select property="password" multiple="true">
> <html:optionsCollection name="list" value="key" label="value"/>
> </html:select>
>
>
>
>
> </html:form>
> </body>
> </html>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>