Home > front end >  IDEA Java exception, a great god to help solve, thank you very much
IDEA Java exception, a great god to help solve, thank you very much

Time:10-02

Is like that, I on the IDEA of using a Java class to connect mysql database, and then wants to control the front-end input, JSP to back-end Servlet verification, established test table in the database, each part of the code below
Now the problem is, I've been using Java classes successfully connected to the mysql database and obtain the data connection mysql Java classes for Testsql. Java
Then, now want to through the front-end input id and password, in ServletTestsql instantiation Testsql object, call the login method, the id, password, expected return name
And assigned to the username of the variables in the Servlet, but, once combined with try catch statement that cannot be finished assignment, , do not add try catch, the IDEA of complains, cannot compile, to get their id, as for the front-end passwrod these variables have been checked, the problem is this username cannot be assigned values on all the time, strives for the great god help to solve,
  • Related