Thanks for the pointers.
On 11/10/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > On 11/10/05, Cass Costello <[EMAIL PROTECTED]> wrote: > > > > Craig, > > > > I'm new to digester and will be poking around. Does the ruleset for > chain > > handle collections as well? I'd like to popualte a member > > java.util.ListUsers with something like ... > > > > <command ...> > > <users> > > <user>me</user> > > <user>you</user> > > </users> > > </command> > > > This is not supported directly. However, you can acquire the instance of > Digester that is being used, and add your own rules to it. > > There's quite a bit of documentation on the Digester web site to get you > started (http://jakarta.apache.org/commons/digester). For examples of > sophisticated uses of Digester, I would suggest looking at the source code > for Struts or Tomcat, which both use Digester to parse their respective > configuration files. > > Craig > > > Thanks, > > Cass > > > > > > On 11/8/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > > > > > On 11/8/05, Ramaswamy, Muthu <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi All- > > > > > > > > I believe one can define (settable) parameters in the Catalog file > for > > > > each command. Is it true? > > > > > > > > > Yes. > > > > > > If yes, where I can find the proper syntax to define the parameters. > Any > > > > sample file/segment would help. > > > > > > > > > Commons Chain uses Commons Digester to parse the configuration file, > and > > > tries to match (nearly) all attributes you specify on a <command> > > element > > > to > > > a corresponding property on the implementation class. So, if you have > a > > > Command class "mypackage.Foo" that has properties "bar" and "baz", you > > can > > > configure them like this: > > > > > > <command className="mypackage.Foo" bar="bar value" baz="baz value"/> > > > > > > Craig > > > > > > > > > > > > Thanks. > > > > > > > > -Muthu Ramaswamy > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > >