On Thu, 16 Jan 2003, Simon Kelly wrote:
> Date: Thu, 16 Jan 2003 14:52:11 +0100 > From: Simon Kelly <[EMAIL PROTECTED]> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > To: Struts Users Mailing List <[EMAIL PROTECTED]> > Subject: Digester getting recursive tag types. > > Hi all, > > I am trying to load a set of beans using the Digester. One of the beans > (Menu) will contain beans of the same type within. The basic layout of a > page follows with what I think is the correct way of dragging in recursive > tags (IE SubMenu is of type Menu). Can anyone verify if this is even in the > right ball park? > Two suggestions: * In your property setter rules, you'll want to specify the name of the JavaBean property in lower case, not capitalized. * For the recursive rule, Digester doesn't recognize an asterisk in the middle. Just simplify this to: "*/SubMenu". > Cheers > > Simon. > > PS > I can't run it yet cause I'm only part way through workig out how to extract > it all afterwards. > Check out the way Struts 1.1 builds a ModuleConfig tree, and extracts it out, for ideas on how to handle this. Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

