Re: Session lost in filter after redirect while using URL-rewrite

2006-05-10 Thread Andreas Hartmann
Michael Jouravlev wrote: http://java.sun.com/webservices/docs/1.6/api/javax/servlet/http/HttpServletResponse.html#encodeRedirectURL(java.lang.String) Thanks for the URL - I never thought that there would be a method to add a session ID to the URL. My first solution was to do it manually which

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-10 Thread Andreas Hartmann
Dave Newton wrote: Andreas Hartmann wrote: No, that's not done. I thought, this would be done in the background by struts automatically. getContextPath is from J2EE, not Struts :) I still have to learn a lot :-(, I know. But I really like it - especially with the great support here in this

Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Andreas Hartmann
Hello! I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect(). The two filters are: Loginfilter and Blockfilter (some pages must be blocked in some circumstances).

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Dave Newton
Andreas Hartmann wrote: I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect(). [snipalottatext] I would be glad to get some help, Are you adding the

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Andreas Hartmann
Hello Dave, Dave Newton wrote: Andreas Hartmann wrote: I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the sendRedirect(). [snipalottatext] I would be glad to get some

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Dave Newton
Andreas Hartmann wrote: No, that's not done. I thought, this would be done in the background by struts automatically. getContextPath is from J2EE, not Struts :) Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Session lost in filter after redirect while using URL-rewrite

2006-05-09 Thread Michael Jouravlev
On 5/9/06, Andreas Hartmann [EMAIL PROTECTED] wrote: Hello Dave, Dave Newton wrote: Andreas Hartmann wrote: I implemented two filters which work fine if session handling is done with cookies. If the session-handling is done by URL-rewriting, the session seems to be lost after the