| <%-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. The ASF licenses this file to You |
| under the Apache License, Version 2.0 (the "License"); you may not |
| use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. For additional information regarding |
| copyright in this work, please see the NOTICE file in the top level |
| directory of this distribution. |
| --%><%@ |
| page import="org.apache.roller.config.RollerRuntimeConfig" session="false" %><% |
| // lets see if we have a frontpage blog |
| String frontpageBlog = |
| RollerRuntimeConfig.getProperty("site.frontpage.weblog.handle"); |
| |
| if (frontpageBlog != null && !"".equals(frontpageBlog.trim())) { |
| // dispatch to frontpage blog |
| RequestDispatcher homepage = |
| request.getRequestDispatcher("/roller-ui/rendering/page/"+frontpageBlog); |
| homepage.forward(request, response); |
| return; |
| } else { |
| // need to create a session before response is committed |
| request.getSession(true); |
| } |
| |
| // otherwise, show the "Here's how to finish your Roller install page" |
| |
| %><% response.setContentType("text/html; charset=UTF-8"); %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <%@ include file="/taglibs.jsp" %> |
| <tiles:insert page="/WEB-INF/jsps/tiles/tiles-simplepage.jsp"> |
| <tiles:put name="banner" value="/WEB-INF/jsps/tiles/banner.jsp" /> |
| <tiles:put name="bannerStatus" value="/WEB-INF/jsps/tiles/bannerStatus.jsp" /> |
| <tiles:put name="head" value="/WEB-INF/jsps/tiles/head.jsp" /> |
| <tiles:put name="styles" value="/WEB-INF/jsps/tiles/empty.jsp" /> |
| <tiles:put name="messages" value="/WEB-INF/jsps/tiles/messages.jsp" /> |
| <tiles:put name="content" value="/WEB-INF/jsps/setupBody.jsp" /> |
| <tiles:put name="footer" value="/WEB-INF/jsps/tiles/footer.jsp" /> |
| </tiles:insert> |