+1 (of course)

Wanted to add something to Craig's message.  This new
version of JXPath supports an alternative mapping for
maps and simlar objects with dynamic properties:

"employee/addresses[@name = 'home']/zipCode"

In many cases this syntax is preferable as the key
value can be an expression like:

"employee/addresses[@name = $addressType]/zipCode"

The attribute name "name" is reserved for this
purpose.

- Dmitri


> ----- Original Message -----
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 21, 2001 9:10 AM
> Subject: [VOTE] Promote "JPath" from Sandbox to
> Commons and rename "JXPath"
> 
> 
> > The "JPath" component supports XPath-expression
> navigation across trees of
> > JavaBeans, so you can say things like:
> >
> >   "employee/addresses/home/zipCode"
> >
> > to do the equivalent of
> >
> >  
>
getEmployee().getAddresses().get("home").getZipCode()
> >
> > This will be very useful in scripted environments
> (such as workflows or
> > JSP custom tags) and other places where you want
> to treat an existing set
> > of JavaBeans like you would treat an XML document.
> >
> > This is a proposal to promote the code in the
> "jpath" directory in
> > jakarta-commons-sandbox into jakarta-commons
> proper so that development
> > can proceed towards an initial Commons release
> (and other packages can
> > rely on it).
> >
> > The name change (back to the original name of
> JXPath) is to avoid
> > confusion with the "JPath" code that is included
> in the JSP Standard Tag
> > Library early access release (under
> jakarta-taglibs) which is somewhat
> > similar in function but completely different in
> internals.
> >
> > Initial committers will be Dmitri Plotnikov
> (original author) and Craig
> > McClanahan.  Others are, of course, welcome to
> participate.
> >
> > Votes, please?
> >
> > Craig (who votes +1)
> >
> >
> >
> >
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to