954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help connecting to mysql tables

\n" +
" image here\n" +
"" + title + "\n");

out.println("" +
"" +
" Title\n" +
" Director\n" +
" Rating\n" +
" Year Released\n" +
" Price\n" +
" Number in stock\n" +
" image name"
);

// Retrieve the results
while(rs1.next()){
// getInt or getString or getFloat etc to get the appropriate column data
// wrap output in html for web
out.println("" +
"" + rs1.getString("title") + "" +
"" + rs1.getString("director") + "" +
"" + rs1.getString("rating") + "" +
"" + rs1.getDouble("year_released") + "" +
"" + rs1.getString("price") + "" +
"" + rs1.getString("stock_count") + "" +

"" + rs1.getString("image_name") +"\n");
//"image here">"
}
// close the html
out.println("

ajrobson
Newbie Poster
1 post since Dec 2006
Reputation Points: 10
Solved Threads: 0
 

1) use code tags
2) don't put Java code in JSPs, they're meant ONLY for displaying results

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You