On Dec 13, 2010, at 12:48 AM, Mark Struberg wrote:

> Which jasper do you use btw? The tomcat-7 jasper I looked 6 months ago was 
> pretty broken... Does it work now?

AFAICT, it works fine now for normal jsps.  I haven't had a chance to dig in 
and see what is happening here.

david jencks

> 
> LieGrue,
> strub
> 
> --- On Fri, 12/10/10, David Jencks <[email protected]> wrote:
> 
>> From: David Jencks <[email protected]>
>> Subject: Re: Is EL in jsp supported at all?
>> To: [email protected]
>> Date: Friday, December 10, 2010, 12:56 AM
>> This property is set for this sample
>> in geronimo, and the code in WebContainerLifecycle that adds
>> an OwbELResolver is getting executed.  I guess I'll
>> have to look inside jasper to see what is going on.
>> 
>> thanks
>> david jencks
>> 
>> On Dec 9, 2010, at 2:16 PM, Joseph Bergmark wrote:
>> 
>>> There is a custom property to get the JSP chain
>> ELResolver to register, I
>>> believe to prevent us from being in the EL-Resolver
>> chain twice in the JSF
>>> case where we can't provide an instance of the bean,
>> as eventually the JSF
>>> chain delegates down to the JSP chain.
>>> 
>>> The property is:
>>> #application is full jsp or not
>>> org.apache.webbeans.application.jsp=true
>>> 
>>> Sincerely,
>>> 
>>> Joe
>>> 
>>> On Thu, Dec 9, 2010 at 4:41 PM, Mark Struberg <[email protected]>
>> wrote:
>>> 
>>>> it 'used' to work back then. I think we also have
>> an example for it.
>>>> 
>>>> LieGrue,
>>>> strub
>>>> 
>>>> --- On Thu, 12/9/10, David Jencks <[email protected]>
>> wrote:
>>>> 
>>>>> From: David Jencks <[email protected]>
>>>>> Subject: Is EL in jsp supported at all?
>>>>> To: [email protected]
>>>>> Date: Thursday, December 9, 2010, 9:33 PM
>>>>> I've been trying to test 6.4.3 for
>>>>> jsp and am starting to think that OWB does not
>> support web
>>>>> beans in EL in jsp pages at all.  I have
>> a jsp like
>>>>> this...
>>>>> 
>>>>> 
>>>>> <%...@page contentType="text/html"
>> pageEncoding="UTF-8"
>>>>> %>
>>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
>> 1.0
>>>>> Transitional//EN" "
>>>> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>>>>> <html xmlns="http://www.w3.org/1999/xhtml";>
>>>>> 
>>>>> <head>
>>>>>     <meta
>> http-equiv="Content-Type"
>>>>> content="text/html; charset=UTF-8"/>
>>>>>     <link
>> href="./css/default.css"
>>>>> rel="stylesheet"
>>>>>          
>> type="text/css"/>
>>>>>     <title>Expression
>> test</title>
>>>>> </head>
>>>>> 
>>>>> <body>
>>>>> <table>
>>>>>     <tr>
>>>>> 
>>>>> <td>${expressionBean}</td>
>>>>>     </tr>
>>>>>     <tr>
>>>>> 
>>>>> <td>${expressionBean.value ==
>>>>> expressionBean.value}</td>
>>>>>     </tr>
>>>>> </table>
>>>>> </body>
>>>>> 
>>>>> </html>
>>>>> 
>>>>> with an ExpressionBean...
>>>>> 
>>>>> @Named
>>>>> public class ExpressionBean {
>>>>> 
>>>>>     private Counter counter;
>>>>> 
>>>>>     @Inject
>>>>>     public void initialize(Counter
>> counter) {
>>>>>         counter.create();
>>>>>         this.counter =
>> counter;
>>>>>     }
>>>>> 
>>>>>     public String getValue() {
>>>>>         return "foo";
>>>>>     }
>>>>> 
>>>>>     @PreDestroy
>>>>>     public void destroy() {
>>>>>         counter.destroy();
>>>>>     }
>>>>> 
>>>>>     public Counter getCounter() {
>>>>>         return counter;
>>>>>     }
>>>>> 
>>>>>     public String getStatus() {
>>>>>         return
>> counter.getStatus();
>>>>>     }
>>>>> 
>>>>>     public String toString() {
>>>>>         return
>> "ExpressionBean:
>>>>> status:" + getStatus();
>>>>>     }
>>>>> }
>>>>> 
>>>>> 
>>>>> and an app-scoped counter.  The output
>> from my jsp
>>>>> seem to indicate that EL is not finding or
>> creating an
>>>>> ExpressionBean.
>>>>> 
>>>>> Am I doing something obviously stupid? 
>> Is there an
>>>>> example of EL + OWB + jsp working?
>>>>> 
>>>>> thanks
>>>>> david jencks
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>> 
>> 
> 
> 
> 


Reply via email to