Many thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87). git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422421 13f79535-47bb-0310-9956-ffa450edef68
62 lines
2.4 KiB
XML
62 lines
2.4 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
|
|
Copyright 2001-2006 The Apache Software Foundation
|
|
|
|
Licensed 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.
|
|
-->
|
|
|
|
<jpublish>
|
|
<name>OFBiz E-Commerce Demo</name>
|
|
|
|
<!-- Define the root paths for pages/actions/templates -->
|
|
<page-root>WEB-INF/pagedefs</page-root>
|
|
<template-root>templates</template-root>
|
|
<action-root>WEB-INF/actions</action-root>
|
|
|
|
<!-- Define the view renderer as the OFBiz GenericViewRenderer -->
|
|
<view-renderer classname="org.ofbiz.webapp.ftl.FreeMarkerViewRenderer"/>
|
|
<page-renderer name="freemarker" classname="org.ofbiz.webapp.ftl.FreeMarkerViewRenderer"/>
|
|
|
|
<!-- Define the default filesystem repository as the Extended repo -->
|
|
<repository name="pages" classname="org.jpublish.repository.filesystem.ExtendedFileSystemRepository">
|
|
<config-dir>WEB-INF/pagedefs</config-dir>
|
|
<root>.</root>
|
|
</repository>
|
|
<repository name="common" classname="org.jpublish.repository.filesystem.ExtendedFileSystemRepository">
|
|
<config-dir>WEB-INF/pagedefs</config-dir>
|
|
<root>../../../common/webcommon</root>
|
|
</repository>
|
|
|
|
<!-- Define the character encoding map -->
|
|
<character-encoding-map path="*">
|
|
<page-encoding>UTF-8</page-encoding>
|
|
<template-encoding>UTF-8</template-encoding>
|
|
<request-encoding>UTF-8</request-encoding>
|
|
<response-encoding>UTF-8</response-encoding>
|
|
</character-encoding-map>
|
|
|
|
<!-- Define mime types -->
|
|
<mime-mapping ext="txt" mimetype="text/plain"/>
|
|
<mime-mapping ext="ftl" mimetype="text/html"/>
|
|
<mime-mapping ext="htm" mimetype="text/html"/>
|
|
<mime-mapping ext="html" mimetype="text/html"/>
|
|
<mime-mapping ext="gif" mimetype="image/gif"/>
|
|
<mime-mapping ext="jpg" mimetype="image/jpeg"/>
|
|
<mime-mapping ext="jpeg" mimetype="image/jpeg"/>
|
|
|
|
<!-- enable JPublish debugging -->
|
|
<!-- <debug>true</debug> -->
|
|
|
|
</jpublish>
|