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

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -