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

<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. :(

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...