by nong33 on February 18th, 2007

nong33

Question

Help answer this question below.

How do you allow access to a database using JSP in the simplest way possible?

Answers. 1 helpful answer below.

  • by slevin01 on February 19th, 2007

    slevin01

    Use JDBC, most databases support JDBC access. Once you have a JDBC driver for the database you can write code fairly easily to run queries against that database. Each database has its own security built into it, so allowing access would be implemented depending on the security the database vendor has to offer, such as setting up Roles, Table access, etc..

    For example:
    Oracle
    http://www.oracle.com/technology/sample_code/tech/java/jsps/ojsp/dbaccessjdbc.html

    MySQL
    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2162&lngWId=2

    • Like
    • Report

    No comments. Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

More Questions. Additional questions in this category.

You're reading How do you allow access to a database using JSP in the simplest way possible?

Follow us on Facebook!

Related Ads

ANSWERBAG BUZZ

Swinging answerbag