how to display the contents of the database values which are retrived.
how to display the contents of the database values which are retrived in servlets and i am able to display the contents in the servlets and if forward to jsp using requestdespatcher,the values are to be shown in jsp one below the other.please suggest me in these........the servlet code is as shown
while(rs.next()){
buffer.append(rs.getString(1));
buffer.append(rs.getString(2));
buffer.append(rs.getString(3));
buffer.append(rs.getString(4));
buffer.append(rs.getString(5));
buffer.append(rs.getString(6));
buffer.append(rs.getString(7));
buffer.append(rs.getString(8));
buffer.append(rs.getString(9));
buffer.append(rs.getString(10));
request.setAttribute("result1",buffer);
RequestDispatcher rq=request.getRequestDispatcher("/results.jsp");
rq.forward(request,response);
in jsp iam using the getAttribute to retrieve the values as shown
<% StringBuffer sb=(StringBuffer)request.getAttribute("result1"); %>
<%= sb %>
but getting the results in the stretch,i need to display the result one below the other.

