It turns out that the problem I was having - had nothing to do with type conversion.
The problem was a chunk of my code that was responsible for formatting. Specifically, the exception "IllegalArgumentException: Cannot format given Object as a Number" was thrown because of <s:text name="format.money" > <s:param name="value" value="myd"/> </s:text> (format.money is defined in package properties -->format.money = {0,number,¤##0.00}) "myd" supposed to be a double. The problem occurred when wrong value was inserted instead of double (e.g. 'aaa' instead of 7,5). The same code threw no exceprion in struts 2.0, but in 2.1.6 it does. (I said earlier that earlier that showcase run differently than blank ... but I thing that was due to the fact that I didn't copy all the code from one project to other - sorry about that ;) So the problem is not so serious as I thought it was. I will try to solve this by checking first if myd contains double or not before formatting.... On 1/26/09, Paweł Wielgus <poulw...@gmail.com> wrote: > Hi all, > just as a side note I wrote few lines about my upgrade process here [1], > remember to delete work directory from tomcat if You are using one. > > [1] - > http://poulwiel.blogspot.com/2009/01/migrating-from-struts-20x-to-216.html > > Best greetings, > Paweł Wielgus. > > 2009/1/25 Wes Wannemacher <w...@wantii.com>: >> On Sunday 25 January 2009 12:39:27 Sergio Italiani wrote: >>> OK you got a point there... but again if it was XWork bug wouldn't it >>> affect showcase as well. As I mentioned before If I modify the >>> showcase validation pages - they work pretty well with type conversion >>> and no exception is thrown. The problem is that the ShowCase is huge >>> and I cannon base my new project on it. On the other hand StrutsBlank >>> is small but it is not working properly as far as type conversion is >>> concerned (and I didn't proceed to try anything else... ) >>> >> >> To be honest Sergio, I haven't looked closely at this bug as I've had a >> few >> other things going on. I understand your sentiment as showcase is pretty >> big >> and brings in quite a few plugins to show examples of what s2 can do. I >> know >> Musachy has had a look at this bug and he's an XWork committer in addition >> to >> struts, so it's likely to get proper attention in the next few days. >> >> If you think you can figure out what's going on and provide a solid fix, >> go >> ahead and take a stab at it. We welcome patches and having a patch will >> likely >> speed up the time to get a fix committed. Even if your patch doesn't >> follow >> all the standards (unit tests, proper spacing, etc.), but the core logic >> of >> your patch fixes the problem, it will often accelerate things since that >> is >> usually what takes the most time. A committer can make whitespace changes >> and >> write or help with a unit test. >> >> -Wes >> >> -- >> >> Wes Wannemacher >> Author - Struts 2 In Practice >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more >> http://www.manning.com/wannemacher >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org