摘要:
1.把包lib/freemarker.jar拷贝到项目中2.新建模板文件WEB-INF/templates/test.ftl,内容如下:Hello,${name}!3.新建一个操作类Class1.java,(把模板装载到jsp页面中). 内容如下package com.abc.web;import java.io.Writer;import java.util.HashMap;import java.util.Map;import javax.servlet.jsp.PageContext;import freemarker.template.Configuration;import free 阅读全文
posted @ 2012-08-24 14:05
只是小人物
阅读(7226)
评论(0)
推荐(2)

浙公网安备 33010602011771号