how to pass value through <s:checkbox>
hello,
plz help me with this.
i've saved my object in a session variable named list. it has name,size, componentId attributes.
i want that when user click the submit button, componentId (its of BigInteger type) values will be passed to my action class.
here is my jsp snippet for doing this.
<s:form action="deleteVideo" >
<s:iterator value="#session.list">
<s:checkbox name="componentId" fieldValue="componentId" />
<s:property value="name" />
<s:property value="size" />
</s:iterator>
<s:submit value="Delete Video"/>
</s:form>
& here is action code for setting componentId values that will be rendered from the checkboxes.
public BigInteger[] getComponentId(){
return componentId;
}
publicvoid setComponentId(BigInteger[] componentId){
this.componentId = componentId;
}
anyone plz tell me, whats wrong with my code?

