You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Abhishek Srivastava <ab...@india.hp.com> on 2001/11/13 12:04:33 UTC

list boxes and struts

Hello All,

Apologies for the re-post. I am trying to implement something which is
trivial.
but I am stuck very badly !!

I want to have a drop down list box in my form. I don't know which data type
should I use in my Form bean corresponding to this html form element
(Collection ??)

let me assume that I am using collection. let me say that in my action class
I put 3 elements in that collection. ("Pizza", "Burger", "Coke").


how do I auto-select say index no 2 of the collection in the list box?


Please do reply .. I am badly stuck. If someone has an example code sample
then it will be great !!

regards,
Abhishek.


A ship in harbor is safe, but that is not what ships are built for.
John A. Shedd

    *****     *****     Abhishek Srivastava
    ***  /_  __ ***     Hewlett-Packard - Solutions Organization
    **  / / /_/  **     19 Cunningham Road. Bangalore -560052.
    ***    /    ***     phone +91 80 2251554 Extn:1532
    *****     *****     mailto:abhisheks@india.hp.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>