I have two html multi lists List1 and List2. List1 contains all the attributes of a table from 开发者_开发百科DB. Now I have buttons Add, AddAll which will take data from list1 to list2. Now I wants to pass the attributes which are added in list2 to another .jsp page on submit. How can i do this? Thanks in advance.
You can do like this
ON your form onsubmit action, call javascript function. That function will read values from list2 ( innerHtml), make a string of all the values concatinated with some special values and set this string to hidden field of form.
This way you have all the element of list2 on your jsp page.
精彩评论