HttpServletRequest request = (HttpServletRequest) context.get("request");
HttpServletResponse response = (HttpServletResponse) context.get("response");
if (request != null && response != null) {
ServletContext ctx = (ServletContext) request.getAttribute("servletContext");
RequestHandler rh = (RequestHandler) ctx.getAttribute("_REQUEST_HANDLER_");
String dataResourceId = content.getDataResourceId(context);
// String urlString = "/content/control/ViewSimpleContent?dataResourceId=" + dataResourceId;
String urlString = "/ViewSimpleContent?dataResourceId=" + dataResourceId;
writer.append("<iframe src=\"").append(rh.makeLink(request, response, urlString, true, false, false)).append("\" ");
writer.append(" width=\"").append(content.getWidth()).append("\"");
writer.append(" height=\"").append(content.getHeight()).append("\"");
String border = content.getBorder();
if (UtilValidate.isNotEmpty(border)) {
writer.append(" border=\"").append(border).append("\"");