Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Step 1. Update your web application configuration (web.xml)

Code Block

<context-param>
                <description>Tiles configuration file</description>
                <param-name>
                        org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
                </param-name>
                <param-value>/WEB-INF/classes/tiles.xml, /WEB-INF/tiles.xml</param-value>
        </context-param>
        <servlet>
                <servlet-name>tiles</servlet-name>
                <servlet-class>
                        org.apache.tiles.web.startup.TilesServlet
                </servlet-class>
                <load-on-startup>2</load-on-startup>
        </servlet>
        <servlet>
                <servlet-name>tiles_dispatch</servlet-name>
                <servlet-class>
                        org.apache.tiles.web.util.TilesDispatchServlet
                </servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>tiles_dispatch</servlet-name>
                <url-pattern>*.tiles</url-pattern>
        </servlet-mapping>

Step 2. Add tiles.xml in your web application archive (WAR)

...

Code Block
<%@ page language="java" contentType="text/html; charset=UTF-8"
       pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test page</title>
</head>
<body>
       <h3>Success...</h3>
</body>
</html>

...