From issues-return-14211-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Fri Nov 06 18:51:36 2009 Return-Path: Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: (qmail 47770 invoked from network); 6 Nov 2009 18:51:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 18:51:36 -0000 Received: (qmail 70917 invoked by uid 500); 6 Nov 2009 18:51:36 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 70868 invoked by uid 500); 6 Nov 2009 18:51:36 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 70860 invoked by uid 99); 6 Nov 2009 18:51:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 18:51:36 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 18:51:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4742A234C052 for ; Fri, 6 Nov 2009 10:51:13 -0800 (PST) Message-ID: <304492643.1257533473290.JavaMail.jira@brutus> Date: Fri, 6 Nov 2009 18:51:13 +0000 (UTC) From: "Musachy Barroso (JIRA)" To: issues@struts.apache.org Subject: [jira] Commented: (WW-3306) Null value accepted from action property, but not model property when throwExceptionOnFailure=true In-Reply-To: <671264498.1256821130168.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 [ https://issues.apache.org/struts/browse/WW-3306?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D47041= #action_47041 ]=20 Musachy Barroso commented on WW-3306: ------------------------------------- I fixed the problem for the inherited properties, so #6 now works. This exp= ression checking thing only works for simple(nested) properties, but it doe= sn't for method invocations, etc etc. If you look at OgnlValueStack:findAva= ilableProperties you will see why. I will give this some thought and see wh= at we can do, but the current implementation is not flexible enough, and th= ere is no quick fix. > Null value accepted from action property, but not model property when thr= owExceptionOnFailure=3Dtrue > -------------------------------------------------------------------------= ------------------------- > > Key: WW-3306 > URL: https://issues.apache.org/struts/browse/WW-3306 > Project: Struts 2 > Issue Type: Bug > Components: Value Stack > Affects Versions: 2.2.0 > Reporter: Andreas Kr=C3=BCger > Assignee: Musachy Barroso > Fix For: 2.2.0 > > Attachments: WW3306.zip > > > In this project, we experiment with setting struts.el.throwExceptionOnFai= lure=3Dtrue to catch errors. > We use in our JSP. > Occasionally, the property thus referenced is null. We want struts to ins= ert an empty string in that case. > This it duely does, when either struts.el.throwExceptionOnFailure=3Dfalse= or when the property is from an action object. > However, if the property is from a model object and struts.el.throwExcept= ionOnFailure=3Dtrue, this bombs out. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.