This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 and Relational Databases
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.
 
Have you checked out Aspose?
 
subject: Inserting a checkbox value into database.
 
It's not a secret anymore!