Search:

Type: Posts; User: copeg

Search: Search took 0.08 seconds.

  1. Re: Using session atttributes and DAO class to delete mySql user records

    What did you try? You should somehow at least check that the user is admin to be sure the user doing the deletion has the appropriate permissions.
  2. Re: Using session atttributes and DAO class to delete mySql user records

    Based upon this, it sounds like you wish to delete a particular user, not the user currently logged in. Is that correct? If so the getAttribute will return the current logged in user (presuming...
  3. Re: Using session atttributes and DAO class to delete mySql user records

    Ok, sounds good.



    Don't know what you mean here. Are you saying because the UserDeleteServlet gets the correct info, you wish to use this as validation that the session is still active? Why...
  4. Re: Using session atttributes and DAO class to delete mySql user records

    A session attribute is meant to allow attributes to be shared during a session. If you set the "user" attribute in another servlet, say when a user logs in, then you should be able to get it in this...
  5. Re: Using session atttributes and DAO class to delete mySql user records

    If you don't set the session attribute, then you can't get it. If you pass the email address using GET, then pass this value to delete the user - be it through a new User object, or by creating a...
  6. Re: Using session atttributes and DAO class to delete mySql user records

    I'm not sure I understand the question. Your code throws a NullPointerException, so what's on line 27 of the code you ran to produce this error? Do you ever set the session attribute? Does the...
Results 1 to 6 of 6