The JEEWebResolver is used to embed Servlet, JSP and JSF content into wicked HTML pages, by a
custom Wicket-Tag. It is tested with Wicket 6.x / 7.x. Because include is used to apply the
content, every restrictions of include is applied. (No header modifications and so on) To use it
you should registered it to the page settings in the init-Method of the Wicket-Application:
@Override
protected void init() {
super.init();
getPageSettings().addComponentResolver(new JEEWebResolver());
}
A tag specifies the location which JSP to load. (The argument is given to the
getRequestDispatcher method of the ServletContext):
<wicket:jsp file="/de/test/jspwicket/TestPage.jsp"></wicket:jsp>
or
<wicket:servlet path="/de/test/jspwicket/Servlet"></wicket:servlet>
or
<wicket:jsf file="/Page.xhtml"></wicket:jsf>
Links:
https://cwiki.apache.org/confluence/display/WICKET/Including+JSP+files+in+ HTML+templates
http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-and-JSP-servlet- wrapping-td4407174.html