intresting problem : same page with few modification on some conditions
posted 6 years ago
i have one jsp page index.jsp in which i have 2 links login and register and a table of books which i had retrieved from bean Userform which stores books details.
IN THIS ABOVE CODE : view is the arraylist whose getter and setter are declared in userform bean and /user is action which maps to userform and useraction for retrieving book details.
when a admin logs in in the login.jsp page i need to display a admin welcome page in which there is a homepage link which onclick i need to display index.jsp with
only table with one column extra and not the 2 links
when user logs in in the login.jsp page i need to display a user welcome page in which there is a homepage link which onclick i need to display only table and not 2 links .
when both logs out from their respective welcome pages i need to show table and 2 links ie login and registration .
i have this above index.jsp page on which i have to display necessary modifications..i have loginform and action and registerform and action classes which deals with login and registration. Whereas this index.jsp is related to only userform which stores book details .