String javascriptPresent = request.getParameter(JAVASCRIPT_PARAM_NAME);
String actionURL = null;
if (javascriptPresent != null) {
//do AJAX
adapter = new FluxAdapter();
actionURL = getActionURL(request, response, true);
} else {
//do standard browser support without scripting
adapter = new ServletAdapter();
actionURL = getActionURL(request, response, false);