Try redirecting rather than forwarding On Tue, Jul 8, 2008 at 8:34 AM, Miguel Paraz <[EMAIL PROTECTED]> wrote: > Hi, > I have a servlet on /site. Depending on the User-Agent, it will use > the RequestDispatcher and forward to /site1 or /site2. > /site1 is mapped to the Wicket filter, /site2 is another plain servlet. > > When I open site1 directly, the CSS link is alright. > > In the original html: > > <link href="site1/styles/site.css" rel="stylesheet" type="text/css" /> > > In the processed html: > > <link href="../site1/styles/site.css" rel="stylesheet" type="text/css"/> > > > But, when I open this through /site and it passes through the > RequestDispatcher, the processed html becomes: > > <link href="../../site1/styles/site.css" rel="stylesheet" type="text/css"/> > > > How did the base URL change? > Thanks. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
