I have tried this in my JSP but get these errors.
I have an import of java.util.* at top of the JSP.
I am using a HashSet so that items in dd box are unique.
I have a servlet that successfully uses Collection and Iteration classes.
I can code a method in my jbean(similar to the one below in JSP ) that will
iterate through Collection and output results on jboss screen but cant get
the results over to JSP
Any help is appreciated as I have spent 2 days now , trying to populate a
stupid <select>box, which I could have handjammed the data into by
now!!!!Graham

[Default] JBoss 2.2.2 Started in 0m:26s
2001-09-17 03:11:55 - Ctx( /adapts ): JasperException: R( /adapts +
/Register.js
p + null) Unable to compile class for
JSPD:\Apache\tomcat\work\localhost_8080%2F
adapts\_0002fRegister_0002ejspRegister_jsp_23.java:101: Class Collection not
found in type declaration.
Collection col=usersecurity.home.findAll();
D:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fRegister_0002ejspRegiste
r_js
p_23.java:102: 
Class java.util.HashSet not found in type declaration.
HashSet coll=new HashSet(col);
^
D:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fRegister_0002ejspRegiste
r_js
p_23.java:102: 
Class java.util.HashSet not found in type declaration.
HashSet coll=new HashSet(col);
^
3 errors

//HERE IS JSP CODE.
<%@page contentType="text/html"%>
<%@page import="java.util.*"%>
<jsp:useBean id="usersecurity" scope="session" class="UserSecurityDataBean"
/> 



<!-- HTML FORM -->
<html>
<head>
<title>Register</title>
</head>

<BODY>

<form method="POST" action="Validate.jsp";"target="Main">

<td><select SIZE="1" NAME="wing"> <option></option>

<%
Collection col=usersecurity.home.findAll();
//usersecurity IS MY JAVABEAN WHICH ACCESSES AN ENTITY BEAN
HashSet coll=new HashSet(col);
Iterator iterator = coll.iterator();
while(iterator.hasNext())
{%>

<option
value=<%usersecurity.getWING();%>"><%usersecurity.getWING()%></option>
<%}%>

</td>



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to