Related differences

Ques 26. How to create 404 error page?

<filter-mapping>
<filter-name>wicket.wicketTest</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<error-page>
<error-code>404</error-code>
<location>/error404</location>
</error-page>
public class WicketApplication extends WebApplication {
 
@Override
protected void init() {
 
mount(new QueryStringUrlCodingStrategy("error404",ErrorPage404.class));
 
}
 
}

Is it helpful? Add Comment View Comments
 

Most helpful rated by users: