* Dispatcher, calls the method passed to ServletModule Class, through the "do"
* Parameter (via POST or GET)
*
- * @version $Id: ServletModuleDispatch.java,v 1.15.2.2 2005/03/26 11:26:25 zapata Exp $
+ * @version $Id: ServletModuleDispatch.java,v 1.15.2.3 2005/07/27 11:46:14 grok Exp $
*
* @author rk
*/
public static void dispatch(ServletModule aServletModule, HttpServletRequest aRequest,
HttpServletResponse aResponse) throws ServletModuleExc, ServletModuleFailure {
+ // look for requested method's name in the "do" http request param,
+ // if not present, use default action
String doParam = aRequest.getParameter("do");
logger.debug("ServletModuleDispatch: " + aServletModule.toString() + " with method " + doParam);
throw new ServletModuleExc("no parameter do supplied!");
}
+ // ok, we have the method's name, now call it
try {
Method method = aServletModule.getClass().getMethod(doParam,SIGNATURE);
if (method != null) {