Submission of CheckBox values in database from jsp

Discussion in 'Java' started by sweta, May 6, 2010.

  1. sweta

    sweta New Member

    Joined:
    May 6, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have multiple checkboxes on my jsp.I have given default value as "N" and written a onclick function which sets it's value to "Y".When i submit by selecting the checkbox,it works fine.
    But when checkbox is not selected it gives error.And it gets null instead of "N" value.

    Please help me if possible.
     
  2. venami

    venami New Member

    Joined:
    Dec 26, 2008
    Messages:
    195
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    Software Professional
    Location:
    India, Tamil Nadu, Cuddalore
    Home Page:
    http://mvenkatapathy.wordpress.com
    Can you post your part of code where you are facing the error, so that we can have a look into it and can help you. Also post your associated Javascript code here.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice