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();
writeOutput( name & ' = ' & req.getAttribute( name ) & '<br>' );
}Was this helpful?