Setting object from param tag fails in Struts 2.2.1

2010-11-14 Thread Raj Nagappan
Hi, we recently upgraded from Struts 2.0.14 to 2.2.1 and I notice that the following JSP code to inject an object property from one action into another action has stopped working: So it checks that the object is not null and then tries to set it on the parameter "keywordList". This worked

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-15 Thread Maurizio Cucchiara
What does your collection contain at runtime? 2010/11/15 Raj Nagappan > Hi, we recently upgraded from Struts 2.0.14 to 2.2.1 and I notice that > > the following JSP code to inject an object property from one action into > another action has stopped working: > > > ignoreContextParams="true"> >

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-15 Thread Li Ying
"[Ljava.lang.String;" means a String array. Looks like you are trying to copy a List from one action to another. By somehow, struts2 is looking for a set method which take a String array as it's parameter. 2010/11/15 Raj Nagappan : > Hi, we recently upgraded from Struts 2.0.14 to 2.2.1 and I n

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-16 Thread Raj Nagappan
Hi, The parameter is definitely an object, if I replace the JSP below with I get keywordl...@3bcdf1, 15 which is correct. Furthermore if I add a setKeywordList(String[] param) method or setKeywordList(String param) method into the action class, it never invokes those new methods but still

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-17 Thread Raj Nagappan
I did some experimenting with this by removing the lazy load and putting the actual object directly on a property in the action class. This had no effect. So then I created a catch-all method setKeywordList(Object obj) to see what was being passed in. The actual data being passed in is a singl

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-17 Thread Li Ying
I don't think this is a bug. Because the basic idea of WEB app is: everything is passed as String. Actually, there is a special layer in struts2 for data conversion. Your action may take int/long/boolean/date or something else as it's parameters, but all the original request parameters are String

Re: Setting object from param tag fails in Struts 2.2.1

2010-11-17 Thread Maurizio Cucchiara
2010/11/17 Raj Nagappan > > I would say this is a regression bug from 2.0.x, yes? > > I guess you're right. Take a look at https://issues.apache.org/jira/browse/WW-1960 Could you open an issue, referencing the one above? I'm sure someone helps you. In the meanwhile could you try to change action'

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Pro1712
> In the meanwhile could you try to change action's behavior? > > ignoreContextParams="true"> > <%--REMOVE THIS LINE value="photoSet.keywordListLazyLoad"/>--%> > > > and create a new method inside your KeywordList action called set > KeywordListLazyLoad()

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Dave Newton
On Thu, Dec 23, 2010 at 7:30 AM, Pro1712 wrote: > I use this action: > ignoreContextParams="true"> > > > /> > > > ActionLinksAction has this method: > public void setActionLinks(final LinkedHashMap actionLinks) > { >actionLinks_ = actionLinks; > } > > This should

Re: Setting object from param tag fails in Struts 2.2.1

2010-12-23 Thread Maurizio Cucchiara
As far as I know this behavior was fixed with the patch sent by Lukasz (see [1] and also [2]). I can't figure out what happened, as far I can see in subversion logs [3] the patch was submitted three months ago, though source code of last struts2 version contains the old version of ChainInterceptor.

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-04 Thread Pro1712
main/java/com/opensymphony/xwork2/interceptor/ChainingInterceptor.java&r1=997345&r2=997344&view=diff&pathrev=997345 > -- View this message in context: http://old.nabble.com/Setting-object-from-param-tag-fails-in-Struts-2.2.1-tp30216692p30584769.htm

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-04 Thread Maurizio Cucchiara
> So should I stay with 2.1.8.1 and wait for 2.2.2? while waiting for the next release you could download the *latest build* [1] [2], and see it works as you expect (please let us know) [1] https://hudson.apache.org/hudson/job/Struts2/lastBuild/org.apache.struts$struts2-core/ [2] https://hudso

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-04 Thread Lukasz Lenart
Here you have the whole packages https://hudson.apache.org/hudson/job/Struts2/lastBuild/org.apache.struts$struts2-assembly/ Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia http://javarsovia.pl

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-05 Thread Pro1712
It works with the latest build (#252)! Do you see any problems using this version in a production environment? -- View this message in context: http://old.nabble.com/Setting-object-from-param-tag-fails-in-Struts-2.2.1-tp30216692p30593987.html Sent from the Struts - User mailing list archive at

Re: Setting object from param tag fails in Struts 2.2.1

2011-01-05 Thread Maurizio Cucchiara
Not much has changed since the 2.2.1 version 2011/1/5 Pro1712 : > > It works with the latest build (#252)! > Do you see any problems using this version in a production environment? > > -- > View this message in context: > http://old.nabble.com/Setting-object-from-param-tag-