Search:

Type: Posts; User: jaltaie

Search: Search took 0.11 seconds.

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

    Here's what I figured out so far:

    - The session attribute value for the list of users is called ('users"), which is set in the DisplayUsersServlet which returns an ArrayList of users (I tried...
  2. Re: Using session atttributes and DAO class to delete mySql user records

    The user logged on does have admin permission. This is what I'm trying:



    package user;

    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
  3. Re: Using session atttributes and DAO class to delete mySql user records

    Correct I want to delete a particular user not the logged in user. The logged in user is the admin.



    From the above do you mean that I don't even need to get or set the session attribute? Just...
  4. Re: Using session atttributes and DAO class to delete mySql user records

    Workflow looks something like this:

    UserDisplayServlet ---> user.jsp(lists a bunch of users) ---> 2 sets hyperlinks calling 2 separate actions for each user listed (update and delete)

    --->...
  5. Re: Using session atttributes and DAO class to delete mySql user records

    This is very useful to know but I still don't understand. What I'm creating here is actually an admin application. So the session attribute is set when the admin logs in and views a list of users...
  6. Re: Using session atttributes and DAO class to delete mySql user records

    Are you saying I have to set and get the session attribute in the same servlet? What if I want to use the session attribute that was set in a prior servlet? For example:




    package user;
    ...
  7. Re: Using session atttributes and DAO class to delete mySql user records

    Sorry if I wasn't clearly. My question is how can I correctly pass the user object so that the UserDB.delete methods functions correctly?

    Line 27 is: user.setEmailAddress(emailAddress);
    ...
  8. Using session atttributes and DAO class to delete mySql user records

    I'm trying to write a form that deletes users from a database using emailAddress as primary key. I'm stuck on how to set the user object. Do I create a new user object (User user = new User())? Do I...
Results 1 to 8 of 8