Hi Filip S,

Can you show me sample code of doing that? here is my simple code:

 public boolean dispatch(Request request, Response response) throws
IOException {
        Cookie[] cookies = cookieSource.getCookies();
        if (cookies != null) {
            for (Cookie c : cookies) {
                if (LOG_KEY.equals(c.getName()) && !signIn.loggedIn()) {
                    String[] p = c.getValue().split(",");
                    if (p.length > 1) {
                        try {
                            signIn.login(p[0], p[1]);
                        } catch (InvalidUserException e) {
                            logger.info("invalid user in cookie " + p[0]);
                        }
                    }
                    break;
                }
            }
        }
        return false;
    }

Filip S. Adamsen-2 wrote:
> 
> Angelo,
> 
> I do exactly that in the request handling pipeline using a 
> ComponentEventRequestFilter and a PageRenderRequestFilter. Works 
> beautifully and let's you get the page name etc. easily from the 
> supplied parameters. Pretty much doesn't get any easier than that. :)
> 
> -Filip
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5%3A-dispatcher-not-fired-in-the-start-page-tp15912127p15923083.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to