Hi,
I'm using GlassFish v3.
I'm going to access a file from the root folder. For example, the
current directory is /html/sth.htm, but I want to include a file in
directory: /inc/header.shtm. In this case, if I use <!--#include
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?
Sincerely,
On Wed, Jul 1, 2009 at 4:00 PM, Shing Wai Chan <Shing-Wai.Chan_at_sun.com>wrote:
> <!--#include file="header.html"-->
> is working for me.
> Are you in GlassFish v3?
> Shing Wai Chan
>
>
> Hu Zhang wrote:
>
>> Hi,
>>
>> I'm transferring a website from JRUN to Glassfish. But the include
>> files are not shown properly. I had to change <#include file> tags to
>> <#include virtual> in order to make it run. Does anyone knows reason for
>> this? Thanks in advance.
>>
>> Sincerely,
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>