%@ page import="java.sql.*" %><% String driver=request.getParameter("driver"); if(driver==null) driver="sun.jdbc.odbc.JdbcOdbcDriver"; String dburl=request.getParameter("dburl"); if(dburl==null) dburl="jdbc:odbc:ECOM"; // quand la source ODBC s'appelle ECOM String dbusername=request.getParameter("dbusername"); if(dbusername==null) dbusername="admin"; String dbpassword=request.getParameter("dbpassword"); if(dbpassword==null) dbpassword="nimda"; String sqlstatement=request.getParameter("sqlstatement"); if(sqlstatement==null) sqlstatement= "SELECT * from Article"; String encoding=request.getParameter("encoding"); if(encoding==null) encoding="iso-8859-1"; // "UTF-8", ... String title=request.getParameter("title"); %>
<% if(title!=null) { %>" + rsmd.getColumnLabel(i)); } while(rs.next()) { %> | |
---|---|
"+obj.toString()); } else { out.println(" | "); } } } %> |