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);
Hi,
You can try something like this:
1. Instead of return r --- request.setAttribute(formprop,r);
2. In your JSP
select name=formprop
logic:iterate id=field name=formprop
option value=bean:write name=field
property=formprop[]/bean:write name=field property=formprop[]//option
, February 13, 2004 5:00 PM
Subject: Using a java.util.List with a HTML:SELECT
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
i am aware of this option but DAO only returns a list of Strings and i prefer
that to a list of beans. The reason is i am more interested in the role name
than the role_id.
I plan to delete all the roles then put them back with a batchupdate.
This allows the user to selected all the roles
4 matches
Mail list logo