Hi, I have a piece of code ( but it's for weblogic) :
try{
dbf=DocumentBuilderFactory.newInstance();
db=dbf.newDocumentBuilder();
xmldoc=db.newDocument();
Element
tableElement=xmldoc.createElement("table");
xmldoc.appendChild(tableElement);
Context ctx=new
InitialContext();
DataSource
ds=(DataSource)ctx.lookup("weblogic.jdbc.jts.oraclePool");
con=ds.getConnection();
stmt=con.createStatement();
rs=stmt.executeQuery("select
* from emp");
ResultSetMetaData
rsmd=rs.getMetaData();
int
col_count=rsmd.getColumnCount();
while (rs.next())
{
1)Could you please show me how to make it work with tomcat ?
2) is "table" in this line : Element
tableElement=xmldoc.createElement("table"); means the url of the database ?
3)is this line : DataSource
ds=(DataSource)ctx.lookup("weblogic.jdbc.jts.oraclePool"); for setting the
driver ?
Thanks lot
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets