The jdbc code to be connected to the databse is to be
written in the scriplet tag that is <% %>....
a sample code of that block is
declare the con connection object,url as string in the
declarative block.
<%try
{
Class.forName("net.avenir.jdbc2.Driver");
url= "jdbc: AvenirDriver: //dell06:1433/TrainCert";
con = DriverManager.getConnection(url, "VeriWorld",
"VeriWorld");
st = con.createStatement();
}
catch(Exception e){}
%>
--- "Kunal H. Parikh" <[EMAIL PROTECTED]>
wrote:
> Hi !
>
> Can someone who has connected from JSP to an Oracle
> server using the Oracle
> thin Driver, mail me with the details towards doing
> so, please .......
>
> I have managed to write a java program to connect to
> an Oracle DB using the
> Oracle thin driver, but don't know how to put it in
> JSP code or servlet. I'm
> new to JSP and servlets.
>
> Any help will b highly appreciated.
>
> Thanx in Advance,
>
> Kunal H. Parikh (KayPee)
> ICQ #: 4883151
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> 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
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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