All Questions
783 questions
-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....
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 ...
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....
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&...
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 ...
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 ...
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="...
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;...
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....
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 ...
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 ...
-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 ...
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 ...
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 ...
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 ...