|
|
<%
Locale locale = Locale.CHINA;
Format formatter = new SimpleDateFormat("MM/dd/yyyy");
Connection con=DbUtil.getCon();
BusinessObjFactory f=new BusinessObjFactory(){
public Object getBusinessObj(ResultSet rs)throws PagingException{
Vector v=new Vector();
try{
v.add(rs.getString("id"));
v.add(rs.getString("type"));
v.add(rs.getString("title"));
v.add(rs.getString("username"));
v.add(rs.getString("whenmade"));
} catch(SQLException ex){
ex.printStackTrace();
throw new PagingException(ex.getMessage());
}
return v;
}
};
out.println("");
con.close();
%>
| |