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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -