java - How to handle spring tag's if it is not checked? -


I have a scenario where an unchecked checkbox null value passes and Neur Pointer generates results in the exception. Can anyone tell me how the form can handle: checkbox if it is not checked?

Code in jsp

  & lt; Form: checkbox path = "document list [$ {DocStatus.index}] .YnChkBox" cssClass = "genradio" value = "- 1" onclick = "selectkeybox (event.keyCode, this)" />   

Any help is appreciated

Code> validation interface, valid () the method as your spring form tag to all assumptions .

To validate one of the forms you have

Hope it helps !!

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -