*/
public class BasePage extends TemplatePage<ServletRequest> {
+ private final Core core;
+
/**
* @param path
* @param contentType
* @param template
*/
public BasePage(Core core, TemplateContextFactory templateContextFactory, Template template, String pageName) {
- super(pageName, "text/html", templateContextFactory, template);
+ super(pageName, "text/html; charset=utf-8", templateContextFactory, template);
+ this.core = core;
}
-}
+ /**
+ * @return the core
+ */
+ public Core getCore() {
+ return core;
+ }
+}