KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > views > freemarker > WebWorkClassTemplateLoader


1 package com.opensymphony.webwork.views.freemarker;
2
3 import com.opensymphony.util.ClassLoaderUtil;
4 import freemarker.cache.URLTemplateLoader;
5
6 import java.net.URL JavaDoc;
7
8 /**
9  * User: plightbo
10  * Date: Aug 10, 2005
11  * Time: 11:25:05 PM
12  */

13 public class WebWorkClassTemplateLoader extends URLTemplateLoader {
14     protected URL JavaDoc getURL(String JavaDoc name) {
15         return ClassLoaderUtil.getResource(name, getClass());
16     }
17 }
18
Popular Tags