struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: Action inheritance and value automatic injection failure
Date Wed, 30 May 2012 06:12:53 GMT
2012/5/29 Dionis Argiri <diostm@gmail.com>:
> In case, when I have some JSP, that's shared with different pages. I don't
> want to make two copies of it. If some value is not set, then I get OGNL
> error and observe it in logs, that "value was not injected". As a potential
> workaround I tried to create public void setFieldName(String[]
> value){/*make OGNL happy*/}. But then I get another error. OGNL can't
> determine, which method to use. Should I just ignore this stuff? Or there
> is some kind of better solution, than just ignoring a problem?
>
> Here's "small" stack trace:
> 2012-05-29 20:03:35,618 [qtp28715691-16] WARN  OgnlValueStack  Error
> setting expression 'item.salePrice' with value '[Ljava.lang.String;@11258b2'
> ognl.MethodFailedException: Method "setSalePrice" failed for object
> model.Item@14e8936 [java.lang.NoSuchMethodException:
> model.Item.setSalePrice([Ljava.lang.String;)]

You should see that only during devMode, the WARN was introduced to
report any typo between JSPs and Actions. If you see that on
production please register an issue.


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

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


Mime
View raw message