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...
Type: Posts; User: jaltaie
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...
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.*;
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...
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)
--->...
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...
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;
...
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);
...
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...