Hi,

first off: Sorry for the rude subject, this is meant to be catchy in order to gain as much feedback as possible.

We are using Struts2 more and more in our large and nontrivial application. I'd like to once again raise attention to a phenomenon that has already been complained about by various users, namely the problem that Struts2 is *way* too gracefull when it determines values for OGNL expressions. The standard suggested remedy for this is to enable devMode. However, this causes far too much noise on the Java console and has lots of other side effects such as for example cleaning resource bundle caches and everything during each page access, so i'd like to not be forced to use this option.

To make the issue clear, let's use a simple example. Consider the following usage of the property custom tag:

<s:property value="myValue"/>

As you all know, this is supposed to yield a call to the "getMyValue()" method of the action class that is running behind the JSP.

What i like to have is plain and simple: A runtime exception of whatever kind should be thrown out (i.e. fall through to the servlet container) if the corresponding method was not found. This would greatly simplify the developer's life. Currently, S2 leniently yields the empty string, which is (kind of) ok in a production environment, but is not so good during development. Smart developers of course set a breakpoint somewhere in the getMyValue() method and notice that the method is not called, but this can have many other reasons than a simple typo in the OGNL expression.

Are there any plans in a (current or) future version of Struts2 to enable such a behavior?

Regards,

Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to