The problem is that I really need a lot more flexibility than the JSP  
2.0 EL gives.  I need to be able to do things like:
        - traverse the expression and get the type of each node
        - be able to decompose the expression into nodes, so that I can  
manipulate Lists/Maps with generics correctly
        - set values using the expression(!)
        - set values, and correctly instantiate null intermediate values

While I'd like to keep the syntax the same as the EL (and subset of  
OGNL that Stripes uses/promotes), what I think I really need is a  
expression parser that then lets me work with the expression...

-t

On Jul 19, 2006, at 1:35 PM, Aaron Porter wrote:

> Tim Fennell wrote:
>> Hey,
>>
>> Does anyone on this list have experience writing parsers in Java?  To
>> give a little background to that question, I'm considering (and have
>> ...
>>
>> In fact it'd probably just be a subset of the new Unified EL grammar
>> to be consistent.  Anyone have good suggestions on the easiest way to
>> create a parser for an EL?
>>
>> -t
>>
> Tim,
> Why not just use the built in EL parser? If I remember correctly,  
> when I
> was looking into it for expression validation it looked trivial to use
> your own context. You'd just have to create a VariableResolver to pass
> into ExpressionEvaluator.evaluate(). It looks like the  
> VariableResolver
> receives an identifier and returns an Object.
>
> Aaron
>
> ---------------------------------------------------------------------- 
> ---
> 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

Reply via email to