Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.