View Single Post
  #1 (permalink)  
Old 06-13-2007, 03:59 PM
Jack Jack is offline
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
JSP tags problem
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:
Code:
<!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:
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); } }
Reply With Quote
Sponsored Links