Re: Custom OGNL PropertyAccessor

2008-02-06 Thread Tommy Becker
Thanks a lot for the info, it worked. I saw a Struts bean definition like that somewhere that led me to believe that that was how it was done, but as you said, it appears that the accessor never actually gets registered that way. As for the wisdom of doing thisin my view the real pain is

Custom OGNL PropertyAccessor

2008-02-05 Thread Tommy Becker
I have a question about using OGNL PropertyAccessors. We have an object on the value stack that we expose to JSP pages that does not have standard JavaBeans getter/setter methods. From what I can tell, this leaves us 2 options. We can either call the getter methods explicitly via OGNL method

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Laurie Harper
Tommy Becker wrote: I have a question about using OGNL PropertyAccessors. We have an object on the value stack that we expose to JSP pages that does not have standard JavaBeans getter/setter methods. From what I can tell, this leaves us 2 options. We can either call the getter methods

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Tommy Becker
If there were a better description, I'd be happy to give it. As far as I can tell, our custom PropertyAccessor is not being used. What we want is to be able to say property in an OGNL expression and have it call getPropertyValue(property), not getProperty(). It seems it's continuing to try

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Tommy Becker
No I haven't. How do I go about doing that? Dave Newton wrote: --- Tommy Becker [EMAIL PROTECTED] wrote: If there were a better description, I'd be happy to give it. As far as I can tell, our custom PropertyAccessor is not being used. What we want is to be able to say property in an

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread mgainty
To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, February 05, 2008 3:05 PM Subject: Re: Custom OGNL PropertyAccessor No I haven't. How do I go about doing that? Dave Newton wrote: --- Tommy Becker [EMAIL PROTECTED] wrote: If there were a better description, I'd be happy

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: you can configure the xwork LoggingInterceptor into your default stack.. interceptor name=logger class=com.opensymphony.xwork2.interceptor.LoggingInterceptor/ looking for clues on OGNL logging??? Set the level on the OGNL classes to DEBUG via whatever mechanism

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Randy Burgess
PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Tue, 5 Feb 2008 15:38:12 -0500 To: Struts Users Mailing List user@struts.apache.org Subject: Re: Custom OGNL PropertyAccessor you can configure the xwork LoggingInterceptor into your default stack.. interceptor name

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Dave Newton
Subject: Re: Custom OGNL PropertyAccessor you can configure the xwork LoggingInterceptor into your default stack.. interceptor name=logger class=com.opensymphony.xwork2.interceptor.LoggingInterceptor/ looking for clues on OGNL logging??? Anyone? HTH Martin - Original

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Randy Burgess
@struts.apache.org Date: Tue, 5 Feb 2008 13:11:57 -0800 (PST) To: Struts Users Mailing List user@struts.apache.org Subject: Re: Custom OGNL PropertyAccessor FWIW, OGNL itself is in the ognl.* package. Dave --- Randy Burgess [EMAIL PROTECTED] wrote: I use standard log4J settings. This example

Re: Custom OGNL PropertyAccessor

2008-02-05 Thread Jeromy Evans
My guess, and it is just a guess, is that your bean is being instantiated by the Struts2 container but it's not being injected anywhere. Based on my almost-non-existent understanding of OGNL, the OgnlRuntime contains a static synchronized map of Class-PropertyAccessor which you can see being