• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URGENT..Puhuleese help

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
regds,
Sandeep.

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Send your code to me then i can have look and send the correct code to you.
with regards
Prakash
(prakashem@rediffmail.com)
 
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic