I should've mentioned that I already tried that and when I call RequestCycle.get(), I get a null.

On 3/16/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
you can try: ((WebRequest)RequestCycle.get().getRequest()).....

-Igor



On 3/16/06, Andrew Berman <[EMAIL PROTECTED] > wrote:
I have a requirement where I need to parse the URL to extract a username on session creation.  For example, http://username.foo.com/..., I need to pull out the username and set a style in the session.  So, I figured that upon session creation I could parse the request and set the style.  In my application class I have:

protected ISessionFactory getSessionFactory() {
        return new ISessionFactory() {
            private static final long serialVersionUID = 1L;

            public Session newSession() {              
                return new FooSession();
            }
        };
    }

So in the newSession method how can I get the URL or request object?

Thanks,

Andrew


Reply via email to