That worked Craig, Thanks!

As I have two Filters both handling FORWARDS now I needed to build in a
guard to prevent a loop forwarding Exceptions around over and over, but
that was done easily.

Thanks a lot and have a great weekend.

BTW: does anyone have a list of ASP's currently running on shale?

Joost Schouten
Dasstraat 21
2623CB Delft
the Netherlands
E: [EMAIL PROTECTED]
W: www.jsportal.com 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Thursday, October 12, 2006 4:36 PM
To: [email protected]
Subject: Re: shale and i18n

On 10/12/06, JS Portal support team <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm in the process of implementing shale and am considering my renewed
> architecture. I have a filter in place which checks the incoming request
> for Locale info. It takes a request like
> http://www.jsportal.com/en_GB/index.jsp and uses the RequestDispatcher
> to forward the request to http://www.jsportal.com/en/GB/index.jsp, if
> not found, http://www.jsportal.com/en/index.jsp, if not found
> http://www.jsportal.com/index.jsp while also setting the Locale in the
> session. This approach creates a very flexible i18n. However, using the
> RequestDispatcher in this way seems to interfere with shale as it too
> seems to use it. Once our filter dispatches the request the shale filter
> seems never to be reached. Does shale have support for this type of i18n
> or is there a way to alter the request URL without using the dispatcher?
> I want to stay away from the response forward because I want my site to
> be cached by searchengines with the locale in the URL.
>
> Does anyone have any ideas how to tackle this problem?


With servlet 2.4 and later, you can declare that you want a filter to be
processed, even on a RequestDispatcher.forward request.  It sounds like
you'll need to configure the Shale filter this way:

    <filter-mapping>
        <filter-name>Shale Filter</filter-name>
        ... URL pattern or servlet name or whatever ...
        <dispatcher>FORWARD</dispatcher>
        <dispatcher>REQUEST</dispatcher>
    </filter-mapping>


Thank you,
> Joost Schouten
> Director


Craig



JS Portal
> Dasstraat 21
> 2623CB Delft
> the Netherlands
> P: +31 6 160 160 14
> E: [EMAIL PROTECTED]
> W: www.jsportal.com
>
>

Reply via email to