Hello,

can you please tell if this solution fixed your problem completely by 
itself? or this worked toghether with the session management code you were 
talking about.
I'm having a similar problem: the mod_jk load balancer is not redirecting 
my requests to the initial tomcat (The one he starts "Talking" with) and 
this happens from the start, even when loading the initial page causing the 
Login page to have missing components...

Thanks,
Sergiu

On Wednesday, January 23, 2008 5:57:41 AM UTC-6, jas_tat wrote:
>
> Hi All, 
>
> I fixed my problem. "Does anyone know how I can pass a plain, 
> unencoded, jsessionid with all http POST requests which the GWT client 
> frontend makes?" 
>
> In the end I used a servlet filter in order to set a jsessionid as a 
> cookie for every http response my GWT application made: 
>
> import java.io.IOException; 
> import javax.servlet.*; 
> import javax.servlet.http.*; 
>
> import org.apache.log4j.Logger; 
>
> public class JsessionidSetter implements Filter 
> { 
>         public static Logger log = Logger.getLogger(JsessionidSetter 
> .class); 
>
>         public void init(FilterConfig arg0) throws ServletException 
>         { 
>         } 
>
>         public void destroy() 
>         { 
>         } 
>
>         public void doFilter(ServletRequest req, ServletResponse res, 
> FilterChain chain) throws IOException, ServletException 
>         { 
>                 HttpServletResponse response = (HttpServletResponse) res; 
>                 HttpSession session = 
> ((HttpServletRequest)req).getSession(true); 
>                 response.addCookie(new Cookie("JSESSIONID", 
> session.getId())); 
>                 chain.doFilter(req, res); 
>         } 
> } 
>
> With supporting xml in my web.xml: 
>
>         <filter> 
>                 <filter-name>JsessionidSetter</filter-name> 
>                 <filter-class>JsessionidSetter</filter-class> 
>         </filter> 
>         <filter-mapping> 
>                 <filter-name>JsessionidSetter</filter-name> 
>                 <url-pattern>/*</url-pattern> 
>         </filter-mapping> 
>
> Thank you all for your comments anyway!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to