• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting a checkbox value into database.

 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Im writing a sample application involving JSP's that would insert and display from a dtabase, however im relatively new to programming and hence facing a lot of minor issues . I understand that my project would be better off using a servlet or a model class , but im trying a POC using just JSP.

Im trying to fetch a set of values from the screen and insert into the database , im able to insert values of text boxes sucessfully , however cant get the checkboxes to insert properly and it keeps throwing an NPE . It would be great if anyone could help me where im going wrong.

Below is the code of my jsp.


tHANKS FOR HELPING!!
 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey folks , it was a minor error , with handling of the checkbox , solved it myself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic