Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on jsp & struts2. The values in the select are populated on click of a button. But in the database there is only a single column for the values. SO I have to save all the values in single column seperated with commas. Plus in the edit mode have to retrieve the value into the same select box. Can any help?? Thanks in advance :)
Posted
Updated 2-Jul-14 18:39pm
v2

This can help[^]

There is a library called jQuery which has loads of plugins, this is one such plugin which does exactly what you are asking (again, I'm hoping i've understood you).
 
Share this answer
 
You are making a serious mistake.
Never put multiple values in a single column in a row. It can but should not be done. It is against 1NF principle. In relational database design, every row must not have a column that takes more than one value, like separated with commas. They should be separated into multiple rows.
Read more: ten-common-database-design-mistakes/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900