我能夠得到列表對象,但你如何顯示列表中的值?我能夠得到一個列表對象,但是如何在列表中顯示值?
<%
com.ibm.commerce.utf.objects.RFQProdAccessBean ab= new com.ibm.commerce.utf.objects.RFQProdAccessBean();
Enumeration list = (java.util.Enumeration)ab.findByRFQId(java.lang.Long.parseLong("13001"));
System.out.println("*******"+list);
Vector aVector = new Vector(java.util.Arrays.asList(list));
Iterator nums = aVector.iterator();
while(nums.hasNext()) {
String aString = (String)nums.next();
System.out.println("************"+aString);
}
%>
<c:out value="${aString}" />
請參閱[本主題]中的forEach示例(http://stackoverflow.com/questions/2147495/accessing-java-based-dom-tree-directly-from-jsf-richfaces/2147716#2147716) – roemer