users@glassfish.java.net

Re: Glassfish HTML include

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Wed, 05 Aug 2009 12:11:34 -0700

You may like to check the following:
1. the ssi servlet mapping is for "shtm"
2. check whether the file "/inc/header.html" really exist as a doc
relative to document path?
    I think you may like to use "virtual" rather than "file" attribute
in this case.
Regards,
     Shing Wai Chan

Hu Zhang wrote:
> Hi,
>
> Yes, it is "shtm", not "shtml". There's nothing in the
> server.log, but on the webpage, at the include part, there's a line
> reads "an error occurred while processing this directive".
>
> On Tue, Aug 4, 2009 at 4:41 PM, Shing Wai Chan <Shing-Wai.Chan_at_sun.com
> <mailto:Shing-Wai.Chan_at_sun.com>> wrote:
>
> Hu Zhang wrote:
>
> I used <!--#include file="/inc/header.shtm" --> in my website,
> but it says "an error occurred while processing this
> directive". I have changed SSI in web.xml. Anyone knows the
> reason for this? Thanks.
>
> Is it "shtml" rather than "shtm"?
> What error message do you in server.log?
> Shing Wai Chan
>
> ---------------------------------------------------------------------
> 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>
>
>