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.
Type: Posts; User: copeg
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.
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...
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...
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...
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...
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...