RE: [Actionframework-users] Report: parameters and action's definition order
Status: Inactive
Brought to you by:
ptoman
From: Jakub C. <bla...@cb...> - 2003-07-22 06:49:01
|
Hello, I also noticed that URL params are sometimes evaluated incorrectly. I think the best way would be to make argument evaluation "greedy" - matc= h as many params as possible. jakub cerny > -----Original Message----- > From: act...@li... > [mailto:act...@li...]On > Behalf Of Ra=FAl P=E9rez > Sent: Monday, July 21, 2003 7:40 PM > To: act...@li... > Subject: [Actionframework-users] Report: parameters and action's > definition order > > > Hello, > > I have noticed when you've a same action name with different number of > parameters the definition order is important. > Example: > 1. <action name=3D"/entrada/" method=3D"getRandomQuiz()"> > 2. <action name=3D"/entrada/$section" method=3D"getRandomQuiz(String > section)"> > 3. <action name=3D"/entrada/$section/$name" method=3D"getQuiz(String se= ction, > String name)"> > > When you have "123 order" written all is right. But with "312 > order" if you > ask for '/entrada/section/name', ActionServlet invoke the second method= as > "/entrada/$section" action. > > Hope it'll be useful. > > Regards, > > Raul Perez > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a single machine. > WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the > same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 > _______________________________________________ > Actionframework-users mailing list > Act...@li... > https://lists.sourceforge.net/lists/listinfo/actionframework-users |