aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "check box followed by a table name" Watch "check box followed by a table name" New topic
Author

check box followed by a table name

Chitti pokala
Ranch Hand

Joined: Jan 11, 2005
Posts: 46
Hi
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.........

Thanks,
-Chitti
Ben Souther
Sheriff

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.........

Thanks..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: check box followed by a table name
 
Similar Threads
Table space
servlet with a databse
the usage of dataTable tag?
Database configuration in JBoss
how can i fire update query in struts?