See WicketSessionFilter....

*/**  * This filter can be used to make the Wicket {**@link *

*org.apache.wicket.protocol.http.WebSession}  * instances available to
non-wicket servlets.  * **<p>*



*  * The following example shows how this filter is setup to for a servlet.
You can find the example  * in the wicket-examples project.  *  * **<pre>*
*  *  **&lt;**!-- The WicketSesionFilter can be used to provide thread
local access to servlets/ JSPs/ etc --**&gt;*
*  *  **&lt;**filter**&gt;*
*  *    **&lt;**filter-name**&gt;**WicketSessionFilter**&lt;**/filter-name*
*&gt;*
*  *    **&lt;**filter-class**&gt;*
*org.apache.wicket.protocol.http.servlet.WicketSessionFilter**&lt;*
*/filter-class**&gt;*
*  *    **&lt;**init-param**&gt;*
*  *      **&lt;**param-name**&gt;**filterName**&lt;**/param-name**&gt;*
*  *      **&lt;**!-- expose the session of the input example app --**&gt;*
*  *      **&lt;**param-value**&gt;**FormInputApplication**&lt;*
*/param-value**&gt;*
*  *    **&lt;**/init-param**&gt;*
*  *  **&lt;**/filter**&gt;*

On Mon, Jul 18, 2016 at 12:56 PM, Urbani, Edmund <[email protected]
> wrote:

> Hello all,
>
> is there an easy way to gain access to the Wicket session from within a
> Servlet? Preferably a way that works with any Wicket version starting from
> 1.4.
>
> Kind regards,
>  Edmund
> --
>
> Edmund Urbani
> Liland IT Team
>
> Email: [email protected] <[email protected]>
>
> Liland IT GmbH ...does IT better
> Tel: +43 463 220111
> Fax: +43 463 220111-33
> Tel(GER): +49 221 65028588
>
> Find us at Facebook http://facebook.com/Lilandit
> http://green-badges.com
> http://iventcloud.com
> http://Lilandit.com
>
> <http://www.LilandIT.com> <http://www.LilandIT.com>
>
> Copyright © 2016, Liland IT GmbH
>
> Diese Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
> Informationen.
> Wenn Sie nicht der richtige Adressat sind oder diese Email irrtuemlich
> erhalten haben, informieren Sie bitte sofort den Absender und vernichten
> Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe
> dieser Mail ist nicht gestattet.
>
> This email may contain confidential and/or privileged information.
> If you are not the intended recipient (or have received this email in
> error) please notify the sender immediately and destroy this email. Any
> unauthorised copying, disclosure or distribution of the material in this
> email is strictly forbidden.
>



-- 
Regards - Ernesto Reinaldo Barreiro

Reply via email to