users@glassfish.java.net

Re: Glassfish HttpServletResponse::sendRedirect

From: Serge Fonville <serge.fonville_at_gmail.com>
Date: Wed, 26 Aug 2009 16:59:08 +0200

Hi,

http://lmgtfy.com/?q=servlet+sendredirect
http://www.allinterview.com/showanswers/10954.html

HTH

Regards,

Serge Fonville

On Wed, Aug 26, 2009 at 4:30 PM, Comerford,
Sean<Sean.Comerford_at_espn3.com> wrote:
> So this may not be a Glassfish question per se but here goes:
>
> We switched from a proprietary servlet 2.3 container to Glassfish v2.1
> (servlet 2.5).
>
> We have VIPs (virutal IPs) that consist of numerous hosts.
>
> So http://foo.com is routed to either http://bar1 or http://bar2
>
> Since switching to Glassfish / servlet 2.5, sendRedirect(“/index”) now sends
> the user to http://barX/index instead of http://foo.com/index (which is what
> we want and how it worked before)
>
> I’m not sure how sendRedirect is determining the domain to use but is there
> a Glassfish config way to override what it’s doing?
>
> --
> Sean Comerford, Software Engineer
> ESPN.com Site Architecture Group
> Office: 860.766.6454    Cell: 860.329.5842
>