Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 675

java ee jdbc jstl servlet connection to db

$
0
0

hi guys hope you re doing well please i ve connect a file with class name singletonconnection to my database and it s all working and i created a class to implement some sql querys like selet from and insert into . i tested this in a class test and it is working i can insert and select an assistant but when i use jstl and servlet to insert an assistant using a form it gives me this mistake on the page . java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "conn" is null". please if you know the answer don t hesitate to comment it .thank you

i try to write describe a probleme and i m looking for an answer


Viewing all articles
Browse latest Browse all 675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>