Hi, You can specify error page on Servlet level - in web.xml. http://stackoverflow.com/questions/7066192/how-to-specify-the-default-error-page-in-web-xml Mount your Wicket error page and specify that path in web.xml configuration.
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, May 19, 2015 at 1:05 PM, Ravi <[email protected]> wrote: > Hi all,I'm facing the following problem, where I'm not sure how to best > handle it.I did specify all error pages, and they work if I'm within my > Request-Response perimeter.If I manipulate a Requestheader, that it says > for > example: "Wicket-Ajax: trssue" instead of "Wicket-Ajax: true", I get the > tomcat 500 error page with a stack trace and some Tomcat related Info. > Especially the Tomcat version. Since this can be a security Issue, it > should > my custom page.As far as I can see, the exception is thrown within the > Wicketfilter.processRequest() method, more specifically:WebRequest > webRequest = application.createWebRequest(httpServletRequest, > filterPath);It > does pass that Line two times, so I guess it does try to call may Error > page, but with the same Header, resulting again in an Error.Here is the > Stacktrace > org.apache.wicket.util.string.StringValueConversionException: Boolean value > "trssue" not recognized > org.apache.wicket.util.string.Strings.isTrue(Strings.java:623) > > org.apache.wicket.protocol.http.WebApplication.createWebRequest(WebApplication.java:468) > > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:196) > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) > > org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:119) > > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > > org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83) > > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) > I don't see how to best approach that.Do you have any advice/ideas?I am > working with Wicket 7.M5.Thanks, Ravi > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Handle-Exceptions-outside-of-RequestCycle-tp4670828.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
