1 package org.apache.turbine.modules.pages;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.turbine.services.jsp.TurbineJsp;
20 import org.apache.turbine.util.RunData;
21
22 /***
23 * Extends TemplatePage to add some convenience objects to the request.
24 *
25 * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>
26 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
27 * @version $Id: JspPage.java 264148 2005-08-29 14:21:04Z henning $
28 */
29 public class JspPage
30 extends TemplatePage
31 {
32 /***
33 * Stuffs some useful objects into the request so that
34 * it is available to the Action module and the Screen module
35 */
36 protected void doBuildBeforeAction(RunData data)
37 throws Exception
38 {
39 TurbineJsp.addDefaultObjects(data);
40
41 try
42 {
43
44 data.getResponse().setBufferSize(TurbineJsp.getDefaultBufferSize());
45 }
46 catch (IllegalStateException ise)
47 {
48
49
50 }
51 }
52 }