service:
public String getTemplateHTML(Bean bean) throws Exception {
if (weather == null) {
return "";
}
Map<String, Object> root = new HashMap<String, Object>();
root.put("bean",bean);
return FreemarkerUtils.getText("*********.ftl", root);
}
action:
request.setAttribute("**********", getTemplateHTML);
jsp:
${requestScope.*********}