Search:

Type: Posts; User: kney

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    3,443

    Re: Correct connection to DB?

    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...
  2. Replies
    12
    Views
    3,443

    Re: Correct connection to DB?

    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
  3. Replies
    12
    Views
    3,443

    Re: Correct connection to DB?

    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...
  4. Replies
    12
    Views
    3,443

    Re: Correct connection to DB?

    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!!"
  5. Replies
    12
    Views
    3,443

    Re: Correct connection to DB?

    "recommendation" is the name of my DB..
    If I add what you say it still does the same
  6. Replies
    12
    Views
    3,443

    Correct connection to DB?

    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...
Results 1 to 6 of 6