I'm having a dig thru the source code, but I can't seem to find the tree building bit. Could you tell me the class this is done in?
Cheers Simon PS Nice bit of coding ;-) ----- Original Message ----- From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 7:01 PM Subject: Re: Digester getting recursive tag types. > > > 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]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

