How to separate data from one database field?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   p_s
Posted On:   Tuesday, August 16, 2005 05:28 AM

Hello



I have 7 check boxes, out of which I am inserting values of 4 check boxes in one database field (for. e.g. A,B,C,D in dbfield1), While clicking on Edit button that particular 4 check boxes should be selected but all values are together in dbfield1 then how to separated them so only that particular 4 check boxes are selected.



I am using oracle,jsp,servlets.



Looking forward for an early reply.



Thanks

Re: How to separate data from one database field?

Posted By:   Parminder_Singh  
Posted On:   Wednesday, August 17, 2005 04:37 PM

You can split this value with the String.split method and then iterate over the resturned array. Based on the value of the array elements, you can then mark the appropriate checkbox selected.
About | Sitemap | Contact