Hi All,
I need to pass an object rather than a string, when I select a check box. Is it possible? if yes, then how?
class SomeObj{
//a Java POJO
}

//JSP
<form action="someservlet">
<input type="checkbox" name=check value=<%=new Someobj.getName()%>// this I want as Object which I am not able to do so. :(

//someservlet
String[] values=request.getParameterValues("check");
//I need array of selected objects instead of the above array of strings.

Note1: please ignore syntax mistakes :)
Note2: I cant put it in session.

Please help me in resolving this issue!
thanks in advance...