954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

can i know what software shall i use to connect jsp file to the database?

do i need a connector???

Visualogic
Light Poster
29 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

No if you can create one for your self, but I would not recommend that. Better to stick with connectors....

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

which connector do u prefer???

Visualogic
Light Poster
29 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

It is more of question what database you using MySQL/MsSQL/Oracle

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

and that's after you stop trying to place business logic in JSPs.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

i am using Microsoft SQL server 2005.

Visualogic
Light Poster
29 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

Ouch, you just hurt my feelings....
Why you not using MySQL , it is more easier to work with (in my opinion). If you wish to stay with MsSQL you need to get your self ODBC connector and learn to use it

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

You need to download the sql server 2005 jdbc driver (sqljdbc.jar) and make sure it is on the application server/servlet container's CLASSPATH.
An easy way of doing this is to put sqljdbc.jar in your webapps WEB-INF/lib directory.

There is plenty of documentation on MSDN on how to use it. A good basic example is here

blater
Light Poster
25 posts since Mar 2008
Reputation Points: 12
Solved Threads: 7
 
do i need a connector???


HI My Friend,
Pl. avoid to connect to database from jsp file using any software. Pl. Write Separate Coding for connect Database in this coding using type 4 driver. it is very easy to connect all database without DSN name creation.

If you connect DATABASE using any database you cannot transfer context any system it is no easy.

So, Pl. Write java coding you connect database server side.

manikandan.sri
Newbie Poster
1 post since Apr 2008
Reputation Points: 10
Solved Threads: 1
 

ok, lets me try it. i am new to this.

need to learn more.

Visualogic
Light Poster
29 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

now i had installed MYSQL. which connector can i use??

Visualogic
Light Poster
29 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

Use MySQL Connector J , a type 4 / pure JDBC compliant driver. Make sure you add this driver to your runtime dependency and you are good to go.

~s.o.s~
Failure as a human
Administrator
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You