1 package org.apache.turbine.modules.screens;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.turbine.Turbine;
23 import org.apache.turbine.TurbineConstants;
24
25 import org.apache.turbine.util.RunData;
26
27 /***
28 * Directs errors at the Jsp error template defined in template.error.
29 *
30 * @author <a href="mailto:ingo@raleigh.ibm.com">Ingo Schuster</a>
31 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
32 * @version $Id: JspErrorScreen.java 534527 2007-05-02 16:10:59Z tv $
33 */
34 public class JspErrorScreen
35 extends BaseJspScreen
36 {
37 /***
38 * @param data Turbine information.
39 * @exception Exception a generic exception.
40 */
41 protected void doBuildTemplate(RunData data)
42 throws Exception
43 {
44 String errorTemplate = Turbine.getConfiguration()
45 .getString(TurbineConstants.TEMPLATE_ERROR_KEY,
46 TurbineConstants.TEMPLATE_ERROR_JSP);
47
48 setTemplate(data, errorTemplate);
49 }
50 }