Skip to main content

All Questions

Tagged with
-1 votes
1 answer
54 views

I feel like the server cannot find my file even though the file path is correct

My plan is to check all textfields whether they are empty or not. If empty I want to display an error message and keep displaying the SignUp.jsp. This is the code: if (uEmail.isEmpty() || uFName....
sonjuro's user avatar
  • 43
0 votes
0 answers
28 views

Java servlet hibernate, can not join column on project run, even the set foreign key contraints is fired

i'm having a small problem while using java Servlet Hibernate to generate DB + tables + relationships when starting the project, the sql statement that hibernate generate is fine as i can see, i can ...
FalAn's user avatar
  • 55
1 vote
1 answer
287 views

Jooq and Mysql drivers not found [duplicate]

Every time I open a connection to mysql database to perform some query I have to put this code before: Class.forName("com.mysql.cj.jdbc.Driver"); otherwise I got this error: java....
poldoj's user avatar
  • 137
0 votes
0 answers
40 views

Login Form thymeleaf (no Spring) does not work

this is my first question here. I created a login form that check login username and password from a database. I don't understand why when i put right username and password ("ok", "ok&...
Francesco Vinci's user avatar
0 votes
1 answer
237 views

Issue to load data from java servlet after clicking submit button

I am using j2e. I have my .jsp where I have some select-options, some information that I get from a database, and a submit button that permit to update the database with the information I choose on ...
Maxxss's user avatar
  • 1
0 votes
0 answers
33 views

How to insert dynamically *multiple* input fields in a row to mysql using java [duplicate]

I have an exact/similar problem with: How to insert dynamically created field values to MySQL db using Java/JDBC? on How to insert dynamically created field values to MySQL db using Java/JDBC? There's ...
Bambina's user avatar
0 votes
1 answer
349 views

Registration form using JDBC and Servlet in java

I have problem accessing database with servlet java. I want to add users with an html registration form. this is the html: <!DOCTYPE html> <html> <head> <meta charset="...
Dipesh Mahajan's user avatar
0 votes
0 answers
39 views

HTTP 500 while uploading java web on heroku

This is my project: #LoginServlet: package Controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet;...
dabei's user avatar
  • 1
0 votes
0 answers
1k views

Tomcat can't find mysql-connector-java-8.0.30.jar that I put in the WEB-INF/lib/ [duplicate]

I put mysql-connector-java-8.0.30.jar in WEB-INF/lib/ Tomcat thows: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/school at java.sql/java.sql.DriverManager....
Koril's user avatar
  • 1
0 votes
0 answers
34 views

Data is not getting fetched by id in controller but it is getting fetched in jsp that calls controller

I have a wierd problem in an application. I pass an id of table row from jsp to servlet. On jsp load I tried to fetch data by id and print in log file. It is getting printed. But when on submit I pass ...
charmi's user avatar
  • 307
3 votes
1 answer
20k views

The type jakarta.persistence.EntityManagerFactory cannot be resolved. It is indirectly referenced from required .class files

package sth.hibernate; import org.hibernate.cfg.Configuration; import org.hibernate.Session; import org.hibernate.SessionFactory; import sth.hibernate.entitty.Users; public class App { public ...
Kuji's user avatar
  • 55
-1 votes
1 answer
343 views

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure. The driver has not received any packets from the server

I have a Servlet and jsp project in which it takes the name and pass. when I want it to save it in the MySQL database using JDBC mysql-connector, it shows this error. Please help me I'm stuck in this ...
Michael . _ .'s user avatar
0 votes
1 answer
120 views

Variable returns null

In my project ,I need to pass the "price" value which is retrieved from the database in "Availability.java" to "display.jsp".I have achieved it, but the problem is.... I ...
Belle's user avatar
  • 39
1 vote
1 answer
118 views

JSP Servlet MYSQL query does not execute

So I'm fighting with this issue for 2 hours straight and I cannot find a solution. I have 2 files. Manage.jsp where I'm printing out whole table with data and there I have 2 submit buttons - 1 to ...
janki3l's user avatar
  • 43
0 votes
0 answers
621 views

java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/grey_goose

I know that this error occurs when we have not included JAR file in the classpath, but I have already done that and my JDBC program in the same project runs perfect, but when I am trying to use JDBC ...
Karmveer Singh's user avatar

15 30 50 per page
1
2 3 4 5
53