Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2009, 06:11 PM
Member
 
Join Date: Mar 2009
Posts: 12
Rep Power: 0
435.mahesh is on a distinguished road
Default sample rolebased application
Hi,

I have an appication developed in struts. I have two interfaces one for student and another for admin. when I login as student I can access pages of Admin if I want to and vice sa versa. I want to stop this example if i log on as student and I cut copy paste a url from admin side i should not be able to view it.

Is there any way by which i can acheive this in struts.
plz send me the code

Thanks
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 05-04-2009, 09:17 AM
Senior Member
 
Join Date: Dec 2008
Location: Hong Kong
Posts: 473
Rep Power: 2
mtyoung is on a distinguished road
Default
for every request, you need to check the login
that means in actions of admin, you need to check the user is student or admin, if is student, return "fail" and redirect to other page

maybe you can store their role in session

Last edited by mtyoung; 05-04-2009 at 09:20 AM.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample ListViewer Java Tip SWT 0 07-07-2008 05:41 PM
Struts 2.x sample application .......? prabhurangan Web Frameworks 7 06-26-2008 11:50 AM
Sample Spring Application Java Tip Java Tips 0 03-29-2008 01:41 PM
Sample ANT Script Java Tip Java Tips 0 01-24-2008 04:22 PM
A Sample spring Application JavaBean Java Tips 0 09-26-2007 09:32 PM


All times are GMT +2. The time now is 06:39 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org