[Actionframework-users] Report: parameters and action's definition order
Status: Inactive
Brought to you by:
ptoman
From: <rp...@ho...> - 2003-07-21 17:30:29
|
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="/entrada/" method="getRandomQuiz()"> 2. <action name="/entrada/$section" method="getRandomQuiz(String section)"> 3. <action name="/entrada/$section/$name" method="getQuiz(String section, 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 |