You shouldn't need a setSearch method inside your action:
the bEst way to make it work is to verify that your
ActionClassName.properties contains a btn.search entry.

2010/11/29 webmeiker <i...@webmeiker.com>:
> Hi all,
>
> Could somebody help me with the next issue?
>
>
>
> In a submit button I want to use a customized label (which is extracted from
> a .properties file).
>
> The problem is that I get the next exception:
>
>
>
> Error setting expression 'btn.search' with value
> '[Ljava.lang.String;@1ed56e2'
>
> *ognl.OgnlException*: target is null for setProperty(null, "search",
> [Ljava.lang.String;@1ed56e2)
>
>      at ognl.OgnlRuntime.setProperty(*OgnlRuntime.java:1651*)
>
>
>
> Here is the code involved:
>
>
>
> …in the .properties:
>
> btn.search=Search
>
>
>
> …in the .jsp:
>
> <s:submit key="btn.search " />
>
>
>
> Does somebody know how to avoid this exception without implementing a method
> ‘setSearch()’ in the action?
>
>
>
> Thanks in advance!
>
>
> --
>



-- 
Maurizio Cucchiara

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

Reply via email to