2.11. Page Not Found

If the ClickServlet cannot find a requested page in the click.xml config file it will use the registered not-found.htm page.

The Click not found page is automatically configured as:

<page path="click/not-found.htm" classname="org.apache.click.Page"/>

You can override the default configuration and specify your own class, but you cannot change the path.

When the ClickServlet starts up it checks to see whether the not-found.htm template exists in the click web sub directory. If it cannot find the page the ClickServlet will automatically deploy one.

You can tailor the click/not-found.htm template to suite you own needs. This page template has access to the usual Click objects.