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

c# - Roxy file manager in MVC doesn't accept session path -

php - proc_open Too many open files in long running Symfony Console app -

c# - Show a huge number of data in DevExpress GridView -