Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Struts: authenticating next action
Hi,

I'm writing a simple web application, where a user can perform several
actions from a single page. I know the user has one of the required roles
for the current page; Struts (I use version 1.1) makes sure of that.

However, I also want to determine if a user may go to the page my Action
implementation refers to. The forward used for this is tied to the name of
the action supplied by the ActionForm.

So far, I think I should do the following:
1 Find the ActionForward that will be used if the action is executed
2 Find the URL the ActionForward refers to
3 Find the ModuleConfig for the new URL
4 Find the ActionMapping for the new URL using its ModuleConfig
5 Check if the user has one of the required roles for this ActionMapping

Is this a good aproach?
If so: how do I do steps 2&3 when using Struts modules?
Is there a better approach?

Any help will be greatly appreciated.


Oscar

--
Oscar Kind                                    http://home.hccnet.nl/okind/
Java/J2EE Developer                             email available on website

Report this thread to moderator Post Follow-up to this message
Old Post
Oscar kind
03-20-04 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Security archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:28 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.