Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc connection in jsp

 
hariharan viswanathan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want know the code
for connecting oracle and jsp
pls any one help me
thanks in advance

regards
v.hariharan
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
same way you do it in java.
use jdbc.
 
Confused
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("jdbc racle:thin:@ip address ort:sid","userid", "password");
}
catch{}
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calls in a JSP: Very Probably not THE BEST SCHEMA to access the Persistency Layer !
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JDBC forum.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Yilmaz Mete:
Calls in a JSP: Very Probably not THE BEST SCHEMA to access the Persistency Layer !


Am I detecting sarcasm in your markup? Then why does the JSTL have SQL tags? Here is a sweet example from the J2EE torturial ^H^H^H tutorial:

Sweet...
[ February 03, 2006: Message edited by: Jeff Albertson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic