This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes check box followed by a table name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "check box followed by a table name" Watch "check box followed by a table name" New topic

check box followed by a table name

Chitti pokala
Ranch Hand

Joined: Jan 11, 2005
Posts: 46
I want to know how to write a servlet for displaying the checkbox followed by the table names that are created in the database. And I want to know how to connect to Oracle database using WSAD.........

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

I would start by going to the Websphere forum to find out what the best practice for connecting to a database is (what connection pool options are availabe in that app server etc..) or, better, reading the server's documentation.

Then I would follow a few JDBC tutorials to find out how to extract the data you are looking for from the database. There is a JDBC forum on this site if you get stuck on anything.

From there, it's just a matter of writing the data as HTML.
In servlets, this is done by getting a printWriter and calling it's println(String) method.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Chitti pokala
Ranch Hand

Joined: Jan 11, 2005
Posts: 46
I want to display for 10 tables

For Example:

chebox(1) TableName(1)
chebox(2) TableName(2)
chebox(n) TableName(n)

Please let me know how to do this. Because I am new this concepts.........

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63053

Because I am new this concepts.

Then following Ben's advice of reading through some tutorials is your best bet. You need to understand the fundamentals of the underlying technologies and start writing some code of your own. You will be able to get lots of help in these forums with any troubles you may encounter. But only if you start by writing the code yourself.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: check box followed by a table name
It's not a secret anymore!