This is for webwork 1, so no xwork or OGNL (although I suspect OGNL would have the same problem).

The object that you get back from an intercepted call is of type __$proxy1, so OGNL/webwork checks property descriptors for that class, rather than the underlying actual class.

On Dec 31, 2003, at 4:49 AM, Fredrik Lindgren wrote:

Just for my own understanding, is this a problem only for just the spring framework dynamic proxies, or does the value stack implementation have issues with dynamic proxies in general? Where does the value stack get confused? Is it in XWork code or in OGNL code?


On Wed, 31 Dec 2003 02:48:43 -0500, Hani Suleiman <[EMAIL PROTECTED]> wrote:


I've started piddling about with doing a small skeleton app for springframework/webwork 1.4 integration. The bean wiring stuff works quite nicely, so I thought I'd go a little crazy and try to get interceptors (via the aopalliance stuff in Spring) working, so us poor 1.4 users can finally stop being jealous of all the cool interceptor stuff in 2.0.

However! I ran into an interesting problem. Spring uses dynamic proxies for the AOP stuff, so the action instance you get back is a proxy of some sort. This means that:

a) You can cast it as any of the interfaces that your action implements and call methods on those
b) The valuestack gets completely confused, since none of the reported methods are of the underlying class.


So, does anyone have any suggestions as to how (or even if) this can be overcome without tons of interfaces for the first issue, and how/if it's possible to go from a proxy to the underlying class object?



--
Fredrik Lindgren


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to