• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

check box followed by a table name

 
Chitti pokala
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Chitti pokala
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64623
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic