on 5/21/01 6:38 PM, "Lomses" <[EMAIL PROTECTED]> wrote: > //sorry,the code should be: > Criteria crit = new Criteria(); > crit.addAscendingOrderByColumn(MydataPeer.SORT_VALUE); > Vector v = MydataPeer.doSelect(crit,dbConn); //use db connection > The table is not empty in database,but the "v" is null,why? > > If I modify the line of 3 as following > Vector v = MydataPeer.doSelect(crit); //don't use db connection > The code worked,why? Are you passing in a valid dbConn? :-) -jon -- If you come from a Perl or PHP background, JSP is a way to take your pain to new levels. --Anonymous <http://jakarta.apache.org/velocity/ymtd/ymtd.html> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
