@Override protected void init() { // System.setProperty("file.encoding", "UTF-8"); // TODO Auto-generated method stub super.init(); String path = getServletContext().getRealPath("/"); getMarkupSettings().setDefaultMarkupEncoding("UTF-8"); getRequestCycleSettings().setResponseRequestEncoding("UTF-8"); IApplicationSettings settings = getApplicationSettings(); // settings.setAccessDeniedPage(CheesrAccessDeniedPage.class); settings.setPageExpiredErrorPage(PageExpiration.class); // settings.setInternalErrorPage(CheesrInternalErrorPage.class); }
@Override public IApplicationSettings getApplicationSettings() { IApplicationSettings appSettings = super.getApplicationSettings(); appSettings.setPageExpiredErrorPage(SequencePage.class); return appSettings; }