printTemplateMapAsStringsUsingJson("success", "error");
}
@Action("fetch")
public void onFetch() {
Response response = UrlUtil.fetchUrl(getString("url"), 1);
put("responseCode", response.getCode());
put("responseText", response.getText());
put("success", true);
printTemplateMapAsStringsUsingJson("success", "error", "responseCode", "responseText");
}