Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

hiding fields

 
suman vasireddy
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i am working on administrator page.in order to that i have created a login page.after loging in i have created a jsp page for the fields.but my problem is i want to hide some of the fields when user enters and i want to display all the fields when administrator enters.....so how to do this
please help me out.....
 
sudipto shekhar
Ranch Hand
Posts: 826
Chrome Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can be done in many ways....
As per me one of them is set an attribute to the request which will identify/determine the client is a user or administrator..
Design a page for the user..
Identify the client and include jsp that you want to show to the administrator, in your jsp...

Hope this helps..

Many different developers have their own ideas...
Let's wait for more of them...
[ December 04, 2008: Message edited by: Sudipto Shekhar ]
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another option is to create roles and determine is the logged in user belongs to that role and show the appropriate jsp. The first option mentioned above is probably easier though. As long as you can determine who is logged in.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:if> is your best friend.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!