You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by DG...@EvergreenInvestments.com on 2004/10/22 20:15:41 UTC

[OT]: Need Ideas for This Puzzle

Maybe it's because it's Friday, or maybe it's because I've been especially 
dense this week, but isn't multithreading orthogonal to the problem?

Dennis





Michael McGrady <mi...@michaelmcgrady.com> 
10/22/2004 02:05 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
Struts Users Mailing List <us...@struts.apache.org>
cc

Subject
Re: Need Ideas for This Puzzle






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" <ji...@yahoo.com>
> 
>
>>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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org