1 package org.apache.turbine.pipeline; 2 3 56 57 import org.apache.turbine.RunData; 58 import org.apache.turbine.TemplateContext; 59 import org.apache.commons.logging.Log; 60 import org.apache.commons.logging.LogFactory; 61 62 75 public class DirectTargetValve 76 extends DefaultTargetValve 77 { 78 private static final Log log = LogFactory.getLog(DirectTargetValve.class); 79 80 86 protected void render(RunData data, TemplateContext context, String target) 87 throws Exception 88 { 89 if (log.isDebugEnabled()) 90 { 91 log.debug("Rendering target " + target); 92 } 93 94 Renderer r = new DirectRenderer(data); 95 96 context.put("renderer", r); 98 99 r.render(target); 101 } 102 } 103 104 | Popular Tags |