This is a test (a crazy list)
BookDAO bdao = new BookDAO();
ArrayList<String> data = bdao.select("livro");
String cols[] = (data.get(0).split(","));
data.remove(0);
for(int i = 0; i < data.size(); i++){
String inp[] = data.get(i).split(", ");
for(int j = 0; j < inp.length-1; j++){
out.print("<br> <b>"+cols[j]+"</b><br> <input type='text' value='"+inp[j]+"'>");
}
out.print("<br><br>");
}