1 package org.apache.turbine.modules.actions; 2 3 18 19 import org.apache.turbine.modules.screens.TemplateScreen; 20 import org.apache.turbine.services.jsp.TurbineJsp; 21 import org.apache.turbine.util.RunData; 22 import org.apache.turbine.util.jsp.JspActionEvent; 23 import org.apache.velocity.context.Context; 24 25 35 public abstract class JspAction extends JspActionEvent 36 { 37 44 public void doPerform(RunData data) 45 throws Exception 46 { 47 doPerform(data, getContext(data)); 48 } 49 50 58 public abstract void doPerform(RunData data, 59 Context context) 60 throws Exception ; 61 62 70 protected void perform(RunData data) 71 throws Exception 72 { 73 super.perform(data); 74 } 75 76 83 public void setTemplate(RunData data, 84 String template) 85 { 86 TemplateScreen.setTemplate(data, template); 87 } 88 89 95 protected Context getContext(RunData data) 96 { 97 return TurbineJsp.getContext(data); 98 } 99 } 100 101 | Popular Tags |