1 package org.apache.turbine.services.jsp; 2 3 18 19 import java.io.OutputStream ; 20 import java.io.Writer ; 21 import org.apache.turbine.services.TurbineServices; 22 import org.apache.turbine.util.RunData; 23 import org.apache.velocity.context.Context; 24 25 36 public abstract class TurbineJsp 37 { 38 44 protected static JspService getService() 45 { 46 return (JspService)TurbineServices 47 .getInstance().getService(JspService.SERVICE_NAME); 48 } 49 50 58 public static Context getContext(RunData data) 59 { 60 return getService().getContext(data); 61 } 62 63 68 public static Context getContext() 69 { 70 return getService().getContext(); 71 } 72 73 } 74 75 | Popular Tags |