How to show the variation in the field if the user is an admin or other users? For example, if it is an admin, it should show some colours and for other users it should show some other colour , how is it achieved?

Questions by Roshini

Showing Answers 1 - 2 of 2 Answers

Manish Kumar Sinha

  • Oct 19th, 2006
 

This can be achieved in many ways.i am just citing one way.If(users.equals(admin)) else

  Was this answer useful?  Yes

subas

  • Oct 23rd, 2006
 

1. If you are using MVC architecture, then your Controller class could decide the role based JSP. You may've separate JSPs for each page to be displayed for a each roles.

2. You could also make use of JSP taglib, to selectively display or block some portion of the JSP code.

3. One could also use mapping in web.xml to forward the request to separate JSPs based upon the login user.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions