1packageorg.apache.jetspeed.modules.actions;
23/*4 * Copyright 2001,2004 The Apache Software Foundation.5 * 6 * Licensed under the Apache License, Version 2.0 (the "License");7 * you may not use this file except in compliance with the License.8 * You may obtain a copy of the License at9 * 10 * http://www.apache.org/licenses/LICENSE-2.011 * 12 * Unless required by applicable law or agreed to in writing, software13 * distributed under the License is distributed on an "AS IS" BASIS,14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15 * See the License for the specific language governing permissions and16 * limitations under the License.17 */1819// Turbine Stuff20import org.apache.turbine.util.RunData;
21import org.apache.turbine.modules.screens.TemplateScreen;
22import org.apache.turbine.modules.ActionEvent;
2324/***25 * This class provides a convenience methods for Jsp Actions26 * to use. Since this class is abstract, it should only be extended27 * and not used directly.28 *29 * @author <a href="mailto:morciuch@apache.org">Mark ORciuch</a>30 * @version $Id: JspAction.java,v 1.3 2004/02/23 02:59:06 jford Exp $31 */32publicabstractclassJspActionextends ActionEvent
33 {
3435/***36 * Sets up the context and then calls super.perform(); thus,37 * subclasses don't have to worry about getting a context38 * themselves!39 *40 * @param data Turbine information.41 * @exception Exception, a generic exception.42 */43protectedvoid perform(RunData data)
44 throws Exception
45 {
46super.perform(data);
47 }
4849/***50 * This method is used when you want to short circuit an Action51 * and change the template that will be executed next.52 *53 * @param data Turbine information.54 * @param template The template that will be executed next.55 */56publicvoid setTemplate(RunData data, String template)
57 {
58 TemplateScreen.setTemplate(data, template);
59 }
60 }