This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes URGENT..Puhuleese help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT..Puhuleese help" Watch "URGENT..Puhuleese help" New topic

URGENT..Puhuleese help

Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
hi everybody,

I'm using a set of JDBC statements to insert a record into a database(Access2000). I'm writing these statements in the scriptlet tag of a jsp page.
The problem is, the JDBC statements written in the scriptlet tag are not getting executed at all. But when I write normal statements(such as out.println(..)), i have no problem.
I have written the Class.forName(..) and getConnection(..) statements in the jspInit() method, which is kept in the declaration section.
The scriptlet tag containg only the statements, which retrieve the encrypted data and insert it into a databse.
Where could be the error?
The same code(written in scriptlet tag) is working fine, when I write it as a servlet.
I'm using JDK1.2.1 and JavaWebServer2.0.
Can anybody please explain me with a simple example, using some set of JDBC statements(written in the scriptlet tag) to insert a record into a database.

Please reply asap, with a simple example.

prakash muthu
Ranch Hand

Joined: Sep 06, 2000
Posts: 75
Send your code to me then i can have look and send the correct code to you.
with regards

Prakash.M<BR>Bangalore- India<BR>(
I agree. Here's the link:
subject: URGENT..Puhuleese help
Similar Threads
Inserting multiple record into a database
Optimal number of records in an Array passed to a Stored Procedure
Container Managed Transactions
Regarding the SQL querry generation
Insert statement