Skip to Content
0
Former Member
Feb 02, 2009 at 06:13 AM

Fetching Role Assigned to a User & Restricting access to page added to it.

27 Views

Hello All,

I have an Old Query (Posted threads earlier but No solution tilll yet)...

I want to run a program such that it shud get executed in following steps:

1) Check if Role "XYZ" is assigned to the user or not.

2) if YES,

a)Fetches specific page "ABC" added to that role ,

and

b)Depending on ip (if external user) :

  • On Clicking page ABC it shud refer to another jsp saying "u cannot access it".

3) Else (for internal users)

No Change.

I hope i ve made it clear..

Please share ur thoughts and codes if possible..

Thanks...