• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

intresting problem : same page with few modification on some conditions

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic