struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-3306) Null value accepted from action property, but not model property when throwExceptionOnFailure=true
Date Fri, 06 Nov 2009 18:51:13 GMT

    [ https://issues.apache.org/struts/browse/WW-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47041#action_47041
] 

Musachy Barroso commented on WW-3306:
-------------------------------------

I fixed the problem for the inherited properties, so #6 now works. This expression checking
thing only works for simple(nested) properties, but it doesn't for method invocations, etc
etc. If you look at OgnlValueStack:findAvailableProperties you will see why. I will give this
some thought and see what we can do, but the current implementation is not flexible enough,
and there is no quick fix.

> Null value accepted from action property, but not model property when throwExceptionOnFailure=true
> --------------------------------------------------------------------------------------------------
>
>                 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├╝ger
>            Assignee: Musachy Barroso
>             Fix For: 2.2.0
>
>         Attachments: WW3306.zip
>
>
> In this project, we experiment with setting struts.el.throwExceptionOnFailure=true to
catch errors.
> We use <s:property value="myprop" /> in our JSP.
> Occasionally, the property thus referenced is null. We want struts to insert an empty
string in that case.
> This it duely does, when either struts.el.throwExceptionOnFailure=false or when the property
is from an action object.
> However, if the property is from a model object and struts.el.throwExceptionOnFailure=true,
this bombs out.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message