Can anyone suggest an architecture for doing the following:
Many different users with different roles will be hitting the same Servlet. The resulting JSP's content needs to be based on the role of the user.
Thanks,
Perry
-
Dyanamic Authorization Architecture (2 messages)
- Posted by: Perry Hertler
- Posted on: June 27 2001 21:53 EDT
Threaded Messages (2)
- Dyanamic Authorization Architecture by Tinou Bao on June 27 2001 22:39 EDT
- Dyanamic Authorization Architecture by Aditya Anand on June 28 2001 16:22 EDT
-
Dyanamic Authorization Architecture[ Go to top ]
- Posted by: Tinou Bao
- Posted on: June 27 2001 22:39 EDT
- in response to Perry Hertler
Can you give a concrete example or more detail?
Tinou
www.tinou.com -
Dyanamic Authorization Architecture[ Go to top ]
- Posted by: Aditya Anand
- Posted on: June 28 2001 16:22 EDT
- in response to Perry Hertler
the Rolw specific JSP can be accomplished by including it in your control servlet configuration... i'm guessing you are using servlets as Control entities.... since i do not know any specific details.... of how and what is configured in this app i'll give a general example...
<hr>
<app>
<actions>
<action
name="PsychedActionPart1"
class="myApp.PAP1"/>
<action
name="PsychedActionPart2"
class="myApp.PAP2"/>
</actions>
<operations>
<operation uri="/myApp/PsychedOp">
<actionref ref="PsycedActionPart1"/>
<actionref
ref="PsycedActionPart1"
error="GenericError.jsp"/>
<views>
<view role="jr_manager">jrPsyched.jsp</view>
<view group="super_users">suPsyched.jsp</view>
<viewDefault>Psyched.jsp</view>
</views>
</actionset>
</operations>
</app>
</hr>
so you have a simple flow control routes the output to a specified view based on the role of the user or the group to which the user / role belongs....
chz
Adi