My Wicket version is 1.3.5
The doFiler is as follows : 
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
                throws IOException, ServletException
        {
                HttpServletRequest httpServletRequest = 
((HttpServletRequest)request);
                *HttpSession httpSession = 
httpServletRequest.getSession(false);*               if
(httpSession != null)
                {
                        Session session = 
(Session)httpSession.getAttribute(sessionKey);
                        if (session != null)
                        {
                                // set the session's threadlocal
                                Session.set(session);

                                if (log.isDebugEnabled())
                                {
                                        log.debug("session " + session + " set 
as current for " +
                                                
httpServletRequest.getContextPath() + "," +
                                                
httpServletRequest.getServerName());
                                }
                        }
                        else
                        {
                                if (log.isDebugEnabled())
                                {
                                        log.debug("could not set Wicket 
session: key " + sessionKey +
                                                " not found in http session for 
" +
httpServletRequest.getContextPath() +
                                                "," + 
httpServletRequest.getServerName());
                                }
                        }
                }
                else
                {
                        if (log.isDebugEnabled())
                        {
                                log.debug("could not set Wicket session: no 
http session was created yet
for " +
                                        httpServletRequest.getContextPath() + 
"," +
httpServletRequest.getServerName());
                        }
                }

                try
                {
                        // go on with processing
                        chain.doFilter(request, response);
                }
                finally
                {
                        Session.unset();
                }
        }
The httpsession in the WicketSessionFilter is null.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-able-to-get-Wicket-Session-even-though-WicketSessionFilter-has-been-added-tp4666469p4666516.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to