public class IncludeNotFound extends Object implements IncludeEventHandler, RuntimeServicesAware, ContextAware
By default, the name of the replacement page is "notfound.vm", however this
page name can be changed by setting the Velocity property
eventhandler.include.notfound, for example:
eventhandler.include.notfound = error.vm
The name of the missing resource is put into the Velocity context, under the
key "missingResource", so that the "notfound" template can report the missing
resource with a Velocity reference, like:
|Constructor and Description|
|Modifier and Type||Method and Description|
Check to see if included file exists, and display "not found" page if it doesn't.
Initialize the EventHandler.
Called automatically when event cartridge is initialized.
public String includeEvent(String includeResourcePath, String currentResourcePath, String directiveName)
public void setRuntimeServices(RuntimeServices rs)
rs- RuntimeServices object assigned during initialization
public void setContext(Context context)
Copyright © 2000–2016 The Apache Software Foundation. All rights reserved.