struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Musachy Barroso <musa...@gmail.com>
Subject Re: ognl 2.7.3 performance
Date Wed, 04 Nov 2009 23:22:35 GMT
ah..I didnt make it up after all:
http://blogs.sun.com/kchung/entry/jsr_245_mr_part_i

On Tue, Nov 3, 2009 at 4:04 PM, Musachy Barroso <musachy@gmail.com> wrote:
> yeah I have to look into that, it seems like the last jar in their
> maven repo doesn't have the latest api. The JUEL demo now works with
> the simple parameters binder, so a dumb form like:
>
> <s:form action="SurveySave">
>        <s:textfield label="First Name"
> name="#{surveyBean.firstName}"></s:textfield>
>        <s:textfield label="Last Name"
> name="#{surveyBean.lastName}"></s:textfield>
>        <s:textfield label="Age" name="#{surveyBean.age}"></s:textfield>
>        <s:textfield label="Birthday"
> name="#{surveyBean.birthdate}"></s:textfield>
>        <s:submit value="Submit"/>
>    </s:form>
>
> works, so basic parameters with type conversions is partially working.
> Long way to go but we have to start somewhere :). beta testers always
> welcome, you would need to build xwork and s2 from trunk and set
> struts.enableSimpleParametersBinder=true. There is a good chance that
> I broke something else, so let me know.
>
> musachy
>
> On Tue, Nov 3, 2009 at 11:52 AM, Antonio Petrelli
> <antonio.petrelli@gmail.com> wrote:
>> 2009/11/3 Musachy Barroso <musachy@gmail.com>:
>>> Well yes, that's by default, but with the new EL api you can plugin a
>>> new EL resolver like:
>>>
>>>  JspApplicationContext jspApplicationContext =
>>> JspFactory.getDefaultFactory().getJspApplicationContext(servletContext);
>>>  jspApplicationContext.addELResolver(new CompoundRootELResolver());
>>
>> Maybe I did not explain myself.
>> In a JSP page, an expression of the type:
>> ${something}
>> is treated as an expression. If you put such a string in a non-rtexpr
>> enabled attribute it will give you an error.
>>
>>> BTW the JUEL plugin...
>>
>> Leave JUEL and try Tomcat's EL like I did in tiles:
>> https://svn.eu.apache.org/repos/asf/tiles/framework/trunk/tiles-el
>> (notice that currently SVN seems down).
>> You can even load the default container EL implementation.
>> Take a look in particular at the configuration, because the EL API is
>> got from java.net repository, and the implementation from Tomcat.
>>
>> HTH
>> Antonio
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message