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
gt;>>> Try the following:
>>>>
>>>> 1) inject literal directly
>>>> Instead of
>>>> >>> Try
>>>> >>>
>>>> 2) Create your own wrapper for string like Configuration class with
> method
>>>
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,
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
>
>>
>> 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:
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,
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
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
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
Hi,
I'm using Struts 2.2.3 and have observed some bizarre behavior when
using Spring to provide my actions.. In order to simplify this and prove
the problem I have created a project with a single static html file, and
a single action in struts.xml which references a bean in my spring
context
10 matches
Mail list logo