GeeCON Prague 2014*
The moose likes Struts and the fly likes intresting problem : same page with few modification on some conditions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "intresting problem : same page with few modification on some conditions" Watch "intresting problem : same page with few modification on some conditions" New topic
Author

intresting problem : same page with few modification on some conditions

rohit surve
Greenhorn

Joined: Mar 19, 2009
Posts: 17
hi,

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.


INDEX.JSP



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 .


please help...its urgent.
 
GeeCON Prague 2014
 
subject: intresting problem : same page with few modification on some conditions