users@glassfish.java.net

Re: HTML include virtual problem

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Thu, 02 Jul 2009 11:22:12 -0700

I do try it. It works for me in current build.
Those code has not been changed in v3 for a while.
Questions:
1. Are you in GlassFish v3? Note that many bugs in their area has been
fixed in v3.
2. Can you show us a standalone example to demonstrate what is not
working in your case?
Thanks.
      Shing Wai Chan

Hu Zhang wrote:
> 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 <mailto:hassan.schroeder_at_gmail.com>> wrote:
>
> On Thu, Jul 2, 2009 at 9:01 AM, Hu Zhang<huzhang1982_at_gmail.com
> <mailto: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 <mailto:hassan.schroeder_at_gmail.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> <mailto:users-help_at_glassfish.dev.java.net>
>
>