I have a patch that will throw a runtime exception when either(iff 'struts.el.throwExceptionOnFailure' is true): * Property is not found * Method is not found * An exception is thrown from the expression evaluation
It seems to work fairly well, but I am sure it will need more tweaking and lots of testing. This won't be part of the 2.1 release that we hope will come out soon, but we can make it a priority for the next minor release of 2.1. musachy On Fri, Jan 9, 2009 at 5:30 PM, Musachy Barroso <musa...@gmail.com> wrote: > The OgnlValueStack swallows the exceptions. Always rethrowing the > exception is not an option, as that it not wanted in many places. The > challenge is to do some refactoring, so the exceptions are thrown only > when OgnlValueStack:find(...) is called from the view. I will play > around with it, see if I can come out with something. > > musachy > > On Fri, Jan 9, 2009 at 10:39 AM, hernan gonzalez <hgonza...@gmail.com> wrote: >>> >>> I agree, Struts2 sucks big time in >>> this regard while being an excellent framework otherwise. >>> >>> Robert >> >> Judging from my (not very long) experience with Struts2, I agree >> wholeheartedly >> with that. >> >> It really seems badly broken that the framework (OGNL, in this case) >> swallows exceptions (even if we are on the "view" stage, even if it logs it). >> >> See also this thread http://markmail.org/message/ui2gbkuqjiuhnudf >> >> If the very architecture design of OGNL implies that this cannot be fixed, >> developers should be clearly warned about it. It means, for example, that >> the one has put special care with "lazy getters" in the action >> (those which are called from the rendering stage), as exceptions during its >> execution won't break the jsp page. IMHO, this simply sucks. >> >> Hernán J. González >> http://hjg.com.ar/ >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org