Folks,
Inspite of using all the advices about using Checkbox and MultiBoxes in my form, it still doesn't work. It doesn't remember the box(es) being checked. Here is the code snippet of my
JSP, ActionForm and DispatchAction. I'm using <html:multibox> for a single checkbox. (I used boolean property also, but it didn't work):
ActionForm (say its name is "myForm"):
private
String[] signature = {};
private String signChk;
Reset method():
signature = new String[] {};
signChk = new String("false");
My JSP:
<bean
efine id="checkme" name="myForm" property="signChk" type="java.lang.String" />
<html:multibox property="signature">
<bean:write name="checkme" />
</html:multibox>
I also tries using <html:checkbox> but in vain. Here is the code snippet for that:
ActionForm (say its name is "myForm"):
private boolean newChk;
Reset method():
newChk = false;
My JSP:
<html:checkbox property="newChk" />
I'm using Websphere 5.1. I've already spent too much time on this.
Please help as I'm nearing a deadline. I nver thought it would be so difficult using checkboxes.
Would really appreciate your help.
Thanks
Upen