If you would like to have custom Http error pages you can update the wicket filter-mapping in your web.xml to the following (notice the dispatchers):
<filter-mapping> <filter-name>WicketFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>ERROR</dispatcher> </filter-mapping> <error-page> <error-code>404</error-code> <location>/404</location> </error-page> This is assuming that you have mapped "/404" in your WebApplication: mount(new HybridUrlCodingStrategy("/404", PageNotFound.class)); PageNotFound.java WebPage: @Override protected void configureResponse() { getWebRequestCycle().getWebResponse().getHttpServletResponse().setStatus(HttpServletResponse.SC_NOT_FOUND); } -----Original Message----- From: Stefan Fußenegger [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 5:51 AM To: users@wicket.apache.org Subject: usage of AbortWithHttpStatusException Hi, How is AbortWithHttpStatusException meant to be used? I expected that this exception would result in a (e.g.) 404 error page to be shown. However, all I get is an empty page. Any ideas on how I can get a nice, custom error page to show up? Cheers, Stefan btw: i'm using jetty if this is important. ----- ------- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/usage-of-AbortWithHttpStatusException-tp15631513p15631513.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]