This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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