当然可以啦,你返回一个数组不就可以了?============================================================================
http://www.betajin.com/alphasun/index.htm
DocWizard C++程序文档自动生成工具 | Wave OpenGL | HttpProxy | ChatSocket | Mandelbrot| AjaxParser词法分析
http://www.betajin.com/alphasun/index.htm
DocWizard C++程序文档自动生成工具 | Wave OpenGL | HttpProxy | ChatSocket | Mandelbrot| AjaxParser词法分析
ResultSet rs = null;
try { // Prepare the query SQL pstmt = con.prepareStatement
("select * from customers "); // Execute the query rs = pstmt.executeQuery();
ResultSet rs就是你想要的结果集
方法:
public ResultSet select(String sql){
...
return rs;
}
jsp中,
Result rs=beanId.select(yoursql);