I would use 1 jsp for all groups with a custom tag to check if the user is in a given role:
<yourtags:checkIsInRole role="admin"> admin content here </yourtags:checkIsInRole> Dave >From: "Piper, James D CECOM SEC EPS" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [OT] Newbie Design best practice question >Date: Tue, 17 Sep 2002 14:05:29 -0400 > >If I were to have a STRUTS enabled application where I had user types of >restricted_users, full_access_users, and admins and for the most part the >content of the screens the different user types get to see are the same, >except for maybe Id like there to be a few extra bits of functionality on >the full_access_users and admin screens that doesn't get shown on the >restricted_users screen, then what's the best way to go about this? It will >probably also be that each user type will require some Action objects not >used by the other user types. > >Should I attempt to use one set of JSPs for all the different types of >users >and put logic inside each of the JSPs that says something like 'if the user >is of type full_access_users then shown these extra few buttons', or should >I give each type of user their own set of JSPs? > >I am tempted to try and use one set of JSPs for all user types so that I >don't have to worry about maintenance of three sets of almost identical JSP >files. On the other hand I feel I may be asking for security trouble by >trying to have each JSP check for the user's user type - I also have a >notion that checking user types is something that I should be doing >elsewhere. > >If I do use separate JSPs for each user type, would it make sense to use >the >STRUTS sub-application mechanism to separate them out? > >Thanks for your thoughts, > >- Jim > >-- >To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

