This Domain(Admin5.com) is for Sale:

Velocity 的应用示例

时间:2007-10-22  来源:不详  作者:林子

return "error get template Message.htm " ex.getMessage();

}

}

public static String mergeTemplate(String fileName, VelocityServlet servlet, Context context)

{

Template template = null;

try

{

template = servlet.getTemplate(fileName);

StringWriter sw = new StringWriter();

template.merge(context, sw);

return sw.toString();

}

catch (Exception ex)

{

return "error get template " fileName " " ex.getMessage();

}

}

}

关键字:(Java, JSP, Servlet, template, 模板, Apache, Jakarta, Velocity ) 织梦好,好织梦

看完这篇,您有何感觉呢?

文章评论

共有位Admini5网友发表了评论 查看完整内容

24小时热门信息