checkbox value from database?

hello,

i had posted the same question before but didn't got any reply.

plz help me its very urgent.

i have 2 forms - 1st form is add form and 2nd form is view form.

in add form when i click on the checkbox the value or the name given to the checkbox gets stored in oracle database.

i want that when i go in the view form, the checkbox which i had clicked in add form should be clicked automatically taking it value from databasei.e i want that when i view all the data i view form it should also show me the value of the checkbox.

i am using java jdk1.3 and oracle database.

plz help

thanks in advance.

[659 byte] By [mansi_b85a] at [2007-11-14]
# 1

a solution would be:

you need to put a flag (number: 0/1) in the database for all the values you add (check). Depending on the database design and the business of your application the flag could be a column in the table with the checkbox information, or in another table that has a FK relation with the checkbox information table. When you get the view form you look at this flag, and if it is on you check the checkbox in the view.

abc0xyza at 2007-7-11 > top of java,Database Connectivity,Java Database Connectivity (JDBC)...