aspose file tools*
The moose likes JDBC and the fly likes Inserting a checkbox value into database. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Inserting a checkbox value into database." Watch "Inserting a checkbox value into database." New topic
Author

Inserting a checkbox value into database.

Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

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!!


Learning and Learning!-- Java all the way!
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Hey folks , it was a minor error , with handling of the checkbox , solved it myself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inserting a checkbox value into database.