I have the following problem: when I try to create a list that is inside of the vertical scroll the information of the list doesn't appear.
Do I mix the tags? I want the list from a collection of objects
Can you help me?
my page.jsp:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/WEB-INF/struts-html-el.tld" prefix="html" %>
<%@taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean" %>
<%@page import="XXX.beans.UserBean" %>
<html:html xhtml="true">
<head>
<title>XXX</title>
</head>
<body>
<form name="form1" method="post" action="${LISTAR_ACTION}">
<html:select property="users" title="Users" size="4" multiple="false">
<html:option value="all">ALL</html:option>
<html:optionsCollection name="usersList" label="userId" value="userId" />
</html:select>
<input type="submit" name="List" value=" List" />
</form>
</body>
</html:html>
my code:
Collection usersList= new Vector();
if (resultUsers != null ){
while(resultUsers.next()){
UserBean usrBO = new UserBean();
usrBO.setName(resultUsers.getString("userId"));
usrBO.setAuthModules(null);
usrBO.setPasword(null);
usersList.add(usrBO);
}
}