I've addressed this issue if anybody is interested.
Within each Stripes tag where I require EL expressions to be evaluated
I have added some condition logic within the setValue(Object value)
method. If the value appears to be an EL expression, i.e.
obj.toString().startsWith("${"), I call my own EvaluatorExpression
Class and evaluate the statement and set the Tags value attribute to
that value.
Seems to have done the trick...
On Thu, Feb 12, 2009 at 10:21 AM, phil darley
<[email protected]> wrote:
> Ok so I don't think anybody has come across the issue of scriplet code
> within a stripes tag preventing the stripes tag from been parsed into
> valid html. Please see my previous post for examples:
> http://article.gmane.org/gmane.comp.java.stripes.user/9428/
>
> I only need to use scriplet code within value attributes of stripes
> tags to evaluate el expressions since my web app is running in a JSP
> 1.3 container (before JSP 2.0 el expressions could only be evaluated
> within jstl tags). I have created my own EvaluatorExpression Class
> using commons-el to overcome this but now I've discovered I can not
> call this from a scriplet within my stripes tag.
>
> The only real feasible solution I can think of is to rebuild the
> stripes source code to use my new EvaluatorExpression Class. Can
> anybody enlighten me about the net.sourceforge.stripes.tag package and
> which classes I need to look at?
>
> I want to analyse the string value put within the value attribute, if
> it is el syntax i.e. ${} pass it to my custom EvaluatorExpression
> class to get the string value, to do this I'll also need the jsp
> PageContext.
>
> Not sure if this is actually possible, I'm hoping it is as I can not
> upgrade my server version (big company bureaucracy) and I'm trying to
> do a proof of concept showing the power of stripes!
>
> Cheers,
> Phil
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users