// Replace the content of the web page part identified by the selector:
ReplaceContentAction action2 = new ReplaceContentAction(matcher, jsp);
// Call a client-side javascript function:
Map<String, Object> params = new HashMap<String, Object>();
params.put("selector", selector);
ExecuteJavascriptFunctionAction action3 = new ExecuteJavascriptFunctionAction("showEntryEffect", params);
// Add actions to response:
response.addAction(action1);
response.addAction(action2);
response.addAction(action3);