Re: Strange behaviour with Spring

2011-05-08 Thread Chris Pratt
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

Re: Strange behaviour with Spring

2011-05-09 Thread Marcus
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

RE: Strange behaviour with Spring

2011-05-09 Thread Ilya Kazakevich
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

Re: Strange behaviour with Spring

2011-05-09 Thread Marcus
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,

Re: Strange behaviour with Spring

2011-05-09 Thread Chris Pratt
> >> >> 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:

RE: Strange behaviour with Spring

2011-05-09 Thread 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

Re: Strange behaviour with Spring

2011-05-09 Thread Andrew Lee
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,

Re: Strange behaviour with Spring

2011-05-09 Thread Andrew Lee
gt;>>> Try the following: >>>> >>>> 1) inject literal directly >>>> Instead of >>>> >>> Try >>>> >>> >>>> 2) Create your own wrapper for string like Configuration class with > method >>>

Re: Strange behaviour with Spring

2011-05-10 Thread Marcus Bond
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