You can implement sliders - horizontal and vertical by using JQuery . Take a look at this link http://jqueryui.com/slider/ . You can use these to implement it .
But this is a question about Javascript, isn't it? Let's move it to the forum about Javascript. Remember that JSP is only a tool for generating HTML (including Javascript).
The HTML5 range control can also exhibit a slider, albeit with far less features and stylability than the jQuery sliders. And of course, the HTML5 control only works in the modern browsers that support it.