Custom Error Pages
{
"web" : {
"errorPages" : {
"404" : "/path/to/404.html",
"500" : "/path/to/500.html",
"default" : "/path/to/default.html"
}
}
}server set web.errorPages.404=/missing.htmAccessing error variables
req = getPageContext().getRequest();
names = req.getAttributeNames();
while( names.hasMoreElements() ) {
name = names.nextElement();
writeDump( name & ' = ' & req.getAttribute( name ) );
}Last updated
Was this helpful?