Hello
I am having trouble formatting output from database to browser.
I have follwoing code in try block of
servlet.
try{
Statement stmt = conn.createStatement();
String req_show= "select title from request";
ResultSet rs = stmt.executeQuery(req_show);
while (rs.next() ) {
String titl = rs.getString(1)+"\n";
out.println(titl);out.println("\n");
I get values from above column (title)but they are showing in one row like following
//output
test test check
I want it to show as a cloumn
test
test
check
how do i do that?. I will appreciate it it if you could help me with this.
Thank you