You can't create beans that implement java.lang.String, it's immutable and
doesn't follow the bean spec.
(*Chris*)
On Sun, May 8, 2011 at 2:11 PM, Marcus Bond wrote:
> Hi,
>
> I'm using Struts 2.2.3 and have observed some bizarre behavior when using
> Spring to provide my actions.. In order to
Not sure what you mean, the bean I'm referring to is a Spring bean not a
JavaBean (two unrelated concepts).. there is no requirement when using
the Spring framework to not create Spring beans of type String.
Regardless, this doesn't help explain why the String is being picked up
by the Struts
bond.co.uk]
Sent: Monday, May 09, 2011 11:27 AM
To: user@struts.apache.org
Subject: Re: Strange behaviour with Spring
Not sure what you mean, the bean I'm referring to is a Spring bean not a
JavaBean (two unrelated concepts).. there is no requirement when using
the Spring framework to no
11 11:27 AM
To: user@struts.apache.org
Subject: Re: Strange behaviour with Spring
Not sure what you mean, the bean I'm referring to is a Spring bean not a
JavaBean (two unrelated concepts).. there is no requirement when using
the Spring framework to not create Spring beans of type String.
Regardless,
>
>>
>> Ilya Kazakevich,
>> Developer
>> JetBrains Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>
>> -Original Message-
>> From: Marcus [mailto:mar...@marcusbond.co.uk]
>> Sent: Monday, May 09, 2011 11:
7:54 PM
To: Struts Users Mailing List
Subject: Re: Strange behaviour with Spring
Even if Spring considers it valid, that doesn't mean that other packages
will be able to treat immutable, non-JavaBeans as JavaBeans.
(*Chris*)
On Mon, May 9, 2011 at 3:39 AM, Marcus wrote:
> You can if you wa
Try the following:
>>>
>>> 1) inject literal directly
>>> Instead of
>>> >> Try
>>> >>
>>> 2) Create your own wrapper for string like Configuration class with
method
>>> getMyProperty
>>>
>>>
>>> Ilya Kazakevich,
gt;>>> Try the following:
>>>>
>>>> 1) inject literal directly
>>>> Instead of
>>>> >>> Try
>>>> >>>
>>>> 2) Create your own wrapper for string like Configuration class with
> method
>>>
sbond.co.uk]
Sent: Monday, May 09, 2011 11:27 AM
To: user@struts.apache.org
Subject: Re: Strange behaviour with Spring
Not sure what you mean, the bean I'm referring to is a Spring bean not
a
JavaBean (two unrelated concepts).. there is no requirement when using
the Spring framework to not cr
9 matches
Mail list logo