From your requirements following is the solution I could provide.
Here's what you need to do:
1. On your jsp, define a multibox (<select> with multiple true), one for List L, and other one for List R.
2. Assign form properties to these two select boxes.
3. Between the two list boxes you can give an arrow image to point from left to right (or any such image/button etc to on click of which the selected values should transfer to List R).
5. Lastly get the elemet for List R, by document.getElementById() and assign that array to the List R