| java.lang.Object org.apache.velocity.app.event.implement.IncludeNotFound
IncludeNotFound | public class IncludeNotFound implements IncludeEventHandler,RuntimeServicesAware(Code) | | Simple event handler that checks to see if an included page is available.
If not, it includes a designated replacement page instead.
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
author: Will Glass-Husain version: $Id: IncludeNotFound.java 470256 2006-11-02 07:20:36Z wglass $ |
includeEvent | public String includeEvent(String includeResourcePath, String currentResourcePath, String directiveName)(Code) | | Chseck to see if included file exists, and display "not found" page if it
doesn't. If "not found" page does not exist, log an error and return
null.
Parameters: includeResourcePath - Parameters: currentResourcePath - Parameters: directiveName - message. |
|
|