throw new AJAXException("unknown action requested==>"
+ a_sAction);
}
AjaxAction a_oAction = (AjaxAction) a_oActionObject;
JetspeedRequestContext a_oJetspeedRequestContext = (JetspeedRequestContext) p_oRequestContext;
// Process each parameter for this action
while (a_oParamTok.hasMoreTokens())
{
String a_sName = a_oParamTok.nextToken(VALUE_TOKEN);
// Strip of the leading ; if present
if (a_sName.indexOf(';') >= 0)
{
a_sName = a_sName.substring(1);
}
String a_sValue = a_oParamTok.nextToken();
// Put the parameters on the request context
a_oJetspeedRequestContext.setAttribute(a_sName, a_sValue);
}
// Invoke the action
Map a_oResultMap = new HashMap();
boolean a_bSuccess;
try
{
a_bSuccess = a_oAction.runBatch(a_oJetspeedRequestContext,
a_oResultMap);
} catch (Exception e)
{
// Move the reason into the return map
p_oResultMap.put(REASON, a_oResultMap.get(REASON));