users@glassfish.java.net

Re: HTML include virtual problem

From: Hu Zhang <huzhang1982_at_gmail.com>
Date: Thu, 2 Jul 2009 13:32:05 -0400

Hi Hassan:

     However, it works fine under JRUN server. When I transplanted the
website onto Glassfish, it stopped working.

Sincerely,

On Thu, Jul 2, 2009 at 1:23 PM, Hassan Schroeder <hassan.schroeder_at_gmail.com
> wrote:

> On Thu, Jul 2, 2009 at 9:01 AM, Hu Zhang<huzhang1982_at_gmail.com> wrote:
>
> > virtual="/inc/header.shtm"-->, it works fine, but <!--#include
> > file="/inc/header.shtm"-->, it reports "an error occurred while
> processing
> > this directive". If I remove the slash in front of "/inc", it works fine.
> Do
> > you know the reason?
>
> Quoting the Apache httpd SSI doc:
>
> "The file attribute is a file path, relative to the current directory.
> That
> means that it cannot be an absolute file path (starting with /), nor can
> it contain ../ as part of that path."
>
> <http://httpd.apache.org/docs/2.2/howto/ssi.html>
>
> FWIW,
> --
> Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>