Sample code to use spring model object in javascript. See
member-type-view.jsp.