|
|
|
How do access JDBCTM from JavaServer PagesTM?
I want to know how to access a database from a JSP? Can I use the JDBC coding inside the scriptlets, or does the JDBC code have to be done in Beans, where I am handling the data?
|
|
Browsing and Querying Databases
To illustrate more functionality of JavaServer Pages, we will build an example that allows you to select from available databases, see their tables and column names, and query them. Our JSP application will make use of a bean to access the database.
|
|
Accessing Database using Tags in JSP Pages.
In this tutorial we will learn how to access database and display data from it's tables using JDBC in JSP tags. We have already discussed JDBC and learned how to access database in 'Displaying Records from Database'. So what is new in this tutorial? well we will learn how to use JDBC in JSP tags and then more importantly how to iterate in JSP tags and show off all the records. This is important and as you go through it you'll realize that I was right.
|
|
Working with Databases
While long a bastion of large, well-funded enterprises, databases have found their
way into a much wider range of web sites in recent years. Along with their tradi-tional
role as back office data sources, most large-scale web sites employ databases
for at least some portion of the content.
|
|
|