Well, for a start I don't want to start calling this Stripes-EL. To be clear, what I'm attempting to do here is write a custom parser for the subset of JSP EL that is in agreement with JavaBean dot/indexing notation. That's all.
In answer to your question though, I think that's a case where I could either leave that out (it's completely independent now), or build support for that in to the parser that I'm now writing. The more I look around the Stripes code base, the more I see little code snippets here and there which are doing things to either work around OGNL, or to do partial-parses of expressions, because it's not possible to do what I want with OGNL (e.g. removing indexing from an expression). In related news, I may have under-estimated the effort to write the custom parse. I took a shot at it last night, and my preliminary version is more like 60 lines of code than 50 ;) I believe it correctly parses all correct expressions, and catches some obviously invalid expressions. It'll take a bit more work to make it catch all invalid expressions...but it shouldn't be too bad.... -t On Jul 20, 2006, at 6:22 PM, RepublicanJew wrote: > Would Stripes-EL have to also include logic needed to support the > properties > used in @Validate annotations? I'm thinking of the case where an > annotation > uses a property expression like "collection.property", where the > collection side > doesn't have an index because the .property side applies to each > element in the > collection. > > -RJ > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Stripes-development mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-development ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
