Hmmm weird.
When I step over the parts where the connection is being made it sends me to the exception part. And even though I have a print statement to print the exception, it doesn't do that
and...
Type: Posts; User: kney
Hmmm weird.
When I step over the parts where the connection is being made it sends me to the exception part. And even though I have a print statement to print the exception, it doesn't do that
and...
If I debug,
variable "con" is empty
variable "statement" says: statement => "statement" is not a known variable in the current context
variable rs is empty
dbusername & dbpassword is also empty
checkValidUser() checks the credentials
but here is my login page
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@taglib...
No, there are no exceptions.. It just shows my login page as it's supposed to, and when I enter the data from the only user i have in my db, it says "Incorrect Username or Password!!"
"recommendation" is the name of my DB..
If I add what you say it still does the same
Hi,
I'm kind of new in Java and trying to get a DB connection through JSP pages.
I'm using Derby as DB since MySQL won't install correctly.
Below is my login_bean which I use to compare what a...