用JDBC啊,在JSP页面用<JSP:USEBEAN ID= CLASS=>这些基础得书上还是很详细得

解决方案 »

  1.   

    package com.login;
    import java.sql.*;
    类中的一个方法.略写了
    public Collection getorderbyuid(String uid) throws Exception
    {
           
        String strsql=",,,,";     
      
                Statement stmt=con.createStatement();
        
               ResultSet rst=stmt.executeQuery(strsql);
        Collection ret=new ArrayList();
    ......
                   con.close();
    return ret; }然后就在jsp调javabean就可以了,