Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


Java Tutorials



Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Jsp Prepared Statement Query

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

13 comments so far (post your own) View All Comments Latest 10 Comments:

The program wrritten above is containg errors.
It throwing NullPointerException........

Posted by santy on Thursday, 10.14.10 @ 12:50pm | #100273

more useful,detailed explanation,thanks a lot

Posted by parthipan on Monday, 10.11.10 @ 11:17am | #100176

How or where i could see the source of the database we create if we run the codes above,,?>??

Posted by ann on Wednesday, 09.22.10 @ 12:00pm | #99769

How to convert with float without String ?

Posted by King on Friday, 06.25.10 @ 08:52am | #97780

how to insert date???

Posted by SaiNageswar on Monday, 06.14.10 @ 16:51pm | #97576

You need to put line 76 on line 75. The string cannot be on two different lines. I did not find any other problems with this code, but I modified it right off the bat.

Posted by LordConti on Wednesday, 06.24.09 @ 02:20am | #88749

i m getting error unable to connect to database

Posted by sam on Thursday, 04.30.09 @ 18:54pm | #87298

place line 75 and 76 on the same line . its getting mixed up thinks they are two seperate lines

Posted by Osirion on Wednesday, 04.22.09 @ 14:48pm | #87032

I ran a try and catch to make sure that I was connected to the database and it worked. However, when I run this jsp file to insert into the database, it does NOT work. Everything was step by step; especially my password into the database. Got any suggestions to why its not inserting into the database?
Please write back on why this is happening.

Posted by MM on Sunday, 04.12.09 @ 10:46am | #86740

Sir, can u tell me how to store a radiobutton result in Access Database using JSP.
Please help me.

Thanking you


Posted by anil on Friday, 03.27.09 @ 06:44am | #86276

this code got stuck in the execption --> unable to connect. i changed the password also..

Posted by dhara on Friday, 02.27.09 @ 01:52am | #85276

it is perfect. tell me how to enter data using html

Posted by shweta on Wednesday, 02.18.09 @ 02:02am | #84959

I got error when trying out this codes;
its said
An error occurred at line: 75 in the jsp file: /prepared_statement_query.jsp
String literal is not properly closed by a double-quote
72: (connectionURL, "root", "root");
74: // sql query to insert values in the secified table.
75: String queryString = ("INSERT INTO stu_info(Name,
76: Address,Phone) VALUES (?, ?, ?)");
78: /* createStatement() is used for create statement

how do u solve this?

Posted by bhabyadik on Thursday, 10.30.08 @ 13:27pm | #81412

Ask programming questions?



Back to Tutorial


  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name


Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.