How to integrate wicket framework 6.x with plain old jsp

后端 未结 2 666
一个人的身影
一个人的身影 2021-01-16 19:19

I am looking for examples for how to ingrate wicket 6.10 with jsp We have lots of code written in jsp , which is a good code and we want it to be in our wicket 1. applicati

2条回答
  •  佛祖请我去吃肉
    2021-01-16 20:04

    To add JSP content to a Wicket page, you can use Include.

    To use Wicket-dependent infrastructure in JSP pages (such as the WebSession and WebApplication instances, or generating URLs for Wicket pages), you can use WicketSessionFilter.

    I don't know if including Wicket content in a JSP page is very advisable, but you may try the WicketTester, calling startPage() or startComponentInPage(), and then getting the resulting HTML with getLastResponseAsString().

提交回复
热议问题