Apache Wicket Interview Questions and Answers
Question: How to create 404 error page?Answer:<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?
Yes
No
Most helpful rated by users:
- What is Wicket Framework?
- What are Wicket Models?
- What is Base class for HTML pages?
- What are the Ways to create a page in wicket?
- How to integrate apache-wicket with Spring?