commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Earle <>
Subject Condition Not working as Expected
Date Fri, 21 Nov 2003 20:35:08 GMT
Sorry for the previous misfire!  

I have a Movie bean that has a property:

public Movie {
   List getGenres(); 

if I have an ArrayList of Movies and I execute an


I get back the ArrayList of movies as expected. 
However, if I add a condition (to try and filter the
list) I only get the first Movie object matching the
list, some thing like:

    xPathContext.getValue("/.[genre = 'Comedy']");

I know the first thing you'll say is, "use iterate",
but I cant.  I need the filtered List for what I am

Do you Yahoo!?
Free Pop-Up Blocker - Get it now

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message