Vector Sedf1_vec = new Vector ((Vector) Simple_SearchBean.getSedf1_vec());
ListIterator iter_eres = Sedf1_vec.listIterator();
<table border ="1" bgcolor="#FFFCC">
<tr>
<th>Vendor</th> <th>Model</th> <th>Logical Name</th> <th>Facility</th> <th>Grid-999</th> <th>Grid-Aaa</th> <th>Cabinet</th>
</tr>
<tr>
<% while (iter_eres.hasNext()) {%>
<% String value = (String)iter_eres.next();%>
<%StringTokenizer stoken = new StringTokenizer(value," ");
for(int i=0;i<7;i++) {
String firsttok = stoken.nextToken();%>
<td> <%=firsttok%> </td> </b>
<%}%>
</tr>
<% } %>
</table>
************BEAN*************
while(rs.next()) {
e1 = rs.getString("Vendor");
e2 = rs.getString("Model");
e3 = rs.getString("Logical name");
e4 = rs.getString("Facility");
e5 = rs.getString("Grid-999");
e6 = rs.getString("Grid-Aaa");
e7 = rs.getString("Cabinet");
Sedf1_vec.addElement( e1+ "\n" +e2+ "\n" + e3+ "\n" + e4+ "\n" +e5+ "\n" +e6+ "\n" +e7+ "\n" );
}
Its working good if I donot use the String Tokenizer.
Thanks,
nubee