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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org