struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <maurizio.cucchi...@gmail.com>
Subject Re: labelizing submit buttons
Date Mon, 29 Nov 2010 15:05:33 GMT
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 <info@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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message