RE: [Actionframework-users] parameter passing bug
Status: Inactive
Brought to you by:
ptoman
From: Jakub C. <bla...@cb...> - 2003-04-14 20:57:15
|
Thank you very much for quick fix! If I use Integer variables, everything is OK. When I use long as variable type, then: a) When I supply both variables in URL: /test/2?b=9 ... it works fine. (<in-var> not activated) b) When I only supply variable a in the URL: /test/2 .... I get org.actionframework.ConversionException: No type handler for conversion from 'java.lang.Integer' to 'long' I hope this will help to fix it! Good night (in CEST zone) Jakub Cerny > -----Original Message----- > From: act...@li... > [mailto:act...@li...]On > Behalf Of Petr Toman > Sent: Monday, April 14, 2003 7:02 PM > To: act...@li... > Subject: Re: [Actionframework-users] parameter passing bug > > > > I think there is a bug in parameter passing routines. I found it when I > > tried to use both regexp parameters and ordinary URL parameters together > > (IMHO this is very useful combination..). > > You are right that a combination of HTTP, regex params and <in-var> > causes this bug. There is a fix in the attachment - just replace the > processInVars() method in Action.java (under 'src' directory) and run: > > ant clean > ant > > in ActionServlet root directory - this should rebuild ActionServet.jar. > > > One more strange thing: If I change variable types in previous > example to > > long from Integer, I get: > > org.actionframework.ConversionException: No type handler > for conversion > > from 'java.lang.Integer' to 'long' > > when <input-variable> tag is used. When I comment it out, type > conversion > > works fine. > > I tried this with the fixed version and it seems to be ok now. Please > let me know if you have more problems. > > Thank you for a good analysis and bug report! :) > Petr > -- > [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=22957959 ] > |