if (websiteOk) {
// create the template map
MapStack templateMap = MapStack.create();
ScreenRenderer.populateContextForRequest(templateMap, null, request, response, servletContext);
templateMap.put("formStringRenderer", new HtmlFormRenderer(request, response));
// make the link prefix
ServletContext ctx = (ServletContext) request.getAttribute("servletContext");
RequestHandler rh = (RequestHandler) ctx.getAttribute("_REQUEST_HANDLER_");
String contextLinkPrefix = rh.makeLink(request, response, "", true, false, true);