is it possible to use a java.util.List object with an HTML:SELECT control.

import java.util.List;
import java.util.ArrayList;

public final class Roles extends Ojbect {
    public Roles() {}
    public static List getRoles() {
         List r = new ArrayList();
         r.add("ADMIN");
         r.add("SUPERADMIN");
         r.add("CLERK");
         r.add("SUPERCLERK");
         return r;
    }
}

in jsp 

i would use
<html:form action="....." >
<html:select property="formprop">

<!-- what goest inside the html:select aattribute -->
<html:options......

<html:select>
</html:form>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to