Hi, Caroline,

Just a little follow up to all these good suggestions. I agree that if you use the Action, then you should definitely use helper classes and hopefully decouple them from the action. I like to use multithreading in the helper classes generally. The suggestions about using the ActionForm instead are also good. I guess to decide whether you want to go with Action or ActionForm should depend on whether your logic makes the choice of roles one of presentation or one of buisness logic. I think it could go either way. Definitely these are two different approaches.

Michael McGrady


Wendy Smoak wrote:

From: "Caroline Jen" <[EMAIL PROTECTED]>


The challege comes as the "roles" of the web site
users are introduced. According to the role of the
web site user, I have to display certain groups (not
all the groups) and certain sub-groups (not all
sub-groups within a group) to him/her.
How do I disply groups and their sub-groups under such
a condition?



I would decide who sees what by calling helper classes from the Action, then only place objects in the request or session that the user is allowed to see. That way by the time you get to the JSP all you have to do is iterate over what's there.






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to