You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staypufd edited this page Jan 21, 2015
·
3 revisions
Homework - Show User Detail
The goal of this homework assignment is to show a detail page for each user displayed in the table view that we have for users in the app currently. This will be much like a detailed contact page in a contact manager application.
To do so you need to add a instance variable for ID (an int) to the User class along with getters and setters for that id.
You will need to add a ID column to the table that shows the users to show the users individual ID.
You will need to make that ID for each user instance a clickable link using the tag like we did on the index.html page.
You will then need to add a ViewUserDetailServlet that that link can call much like the login.html page had the link tag call the LoginServlet (aka login).
The ViewUserDetailServlet will then need to get display the user object for the id clicked using a displayUserDetail.jsp. This JSP should show the user name, the email and the user ID and be styled nicely using the Bootstrap CSS features that we added on Tuesday.