--- On Mon, 8/11/08, Haulyn R. Jason <[EMAIL PROTECTED]> wrote:
> I implement ModelDriven interface, but I have a list in my
> model. It
> looks like:
> public class Role(){
> private String id;
> private String name ;
> private List<Privilege> privilegeList;
> }
> 
> In my action, I have a set/get method for Role Object, but
> what about the list?

You don't need a separate method for the list; if you're using ModelDriven 
you'd get it, for example, by using:

<s:iterator value="privilegeList">
  ...

The model (when not null) is pushed onto the top of the stack. If you weren't 
using ModelDriven and had a getter for role:

<s:iterator value="role.privilegeList">
  ...


Dave


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

Reply via email to