I understand. Thanks for the algorith below, though! Pady Srinivasan <[EMAIL PROTECTED]> wrote:
Unfortunately, I cannot give out our code. But it basically involves the following: 1. LoginFilter authenticates the user. Creates a User object. 2. LoginFilter calls a ConfigManager to build a Menu for the User. 3. ConfigManager loads the user profile from an xml file. Gets the role assigned to the user. 4. ConfigManager passes the Role object to a MenuManager and asks it to build a Menu object. 5. The LoginFilter sets the User and the Menu in the session context. 6. Then the LoginFilter forwards the url to the default page or the requested page. 7. On each page, the header section is a jsp which looks for the Menu object and builds the corresponding Menu which has all the categories to be accessed. Thanks -- pady [EMAIL PROTECTED] -----Original Message----- From: as as [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:51 AM To: [EMAIL PROTECTED] Subject: RE: Struts/filters Pady, thats great...May I have a look at the samples if possible...That would help me a lot with the initial learning curve. Thanks! Pady Srinivasan wrote: We do this in our web app. We have a config xml with all our functional categories defined. All these categories are accessed from the webapp using a menu. We have a second config file that defines all the users/roles. Each role is assigned to one or more functional categories. When user logs in, the assigned role is loaded ( ie the javascript menu is built according to the role ) using a filter, and saved in session. Thanks -- pady [EMAIL PROTECTED] -----Original Message----- From: as as [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:00 AM To: [EMAIL PROTECTED] Subject: Struts/filters Hi, Has anyone tried filters framework ( tag in web.xml) in struts for role based access to webpages in a enterprise wide application...deployed in weblogic...we tried this and seems each sub-application needs a differenet, its own web.xml and a single integrated web.xml.. Any workarounds... Thanks, Sam. (Basically, in our lare web app, we want to allow different users (admin, user, etc) access to different pages (password reset, etc) based on his privileges.... Thanks! ( I am quoting below. http://info.borland.com/techpubs/jbuilder/jbuilder8/webapps/webapp_dd_editor .html#filters that i did find some related info, though) Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time.