<%@ page contentType="text/html; charset=utf-8"%> <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> <%@page import="com.cicro.wcm.services.control.domain.SiteDomainManager"%> <%@page import="com.cicro.wcm.template.velocity.*,com.cicro.wcm.template.velocity.impl.*,com.cicro.util.FormatUtil"%> <% String template_id = request.getParameter("tm_id"); String site_id = SiteDomainManager.getSiteIDByUrl(request.getRequestURL().toString()); String model_id = request.getParameter("model_id"); if(model_id==null || model_id=="") { model_id = "0"; } if(template_id != null && !"".equals(template_id)) {//鎵嬪姩浼犳ā鏉縄D VelocityAppealContextImp vc = new VelocityAppealContextImp(request); vc.setTemplateID(site_id,template_id); out.println(vc.parseTemplate()); }else { VelocityAppealContextImp vc = new VelocityAppealContextImp(request); vc.setModelID(model_id,"form"); out.println(vc.parseTemplate()); } %>