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.

[658 byte] By [mansi_b85a] at [2007-11-26 23:35:00]
«« Pause game
»» help
# 1
Well you have to have register a listener to you checkbox, so that when it is click it fires an action. where you will going to put you code for updating.By the way which form are you talking about.. web or application
G_Abubakra at 2007-7-11 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 2
i m talking about application.my code is very large to put over here, but if u have any example code which contains my requirements then u can give it or mail me at mansi_b85@hotmail.com.thank you for ur reply.
mansi_b85a at 2007-7-11 14:56:05 > top of Java-index,Java Essentials,Java Programming...
# 3

better we talk here, for the benefit of other people

i don't have any example but i have ideas;

what you can do is what i said earlier.. just put a listener in your checkbox.. or if you want to make it easier.. just put up button which when you select all the check box you just press the command button and all the selection will be save.. it performance wise.. batch wise

not the view side you can use JTable with rendered Checkbox.. there are many examples in this forum which you just need to search.. just use the left search

G_Abubakra at 2007-7-11 14:56:05 > top of Java-index,Java Essentials,Java Programming...