I did, I just put spaces in to make it look clearer. (But thanks for the
suggestion)

I think the problem is related to the "path" that Embperl sets when it
"walks" up the directory path to base.epl

The Embperl documentation states:
================================
When a request comes in, a page, which name is specified by
EMBPERL_OBJECT_BASE, is searched in the same directory as the requested
page. If the pages isn't found, EmbperlObject walking up the directory tree
until it finds the page, or it reaches DocumentRoot or the directory
specified by EMBPERL_OBJECT_STOPDIR.

This page is then called as frame for building the real page. Addtionaly
EmbperlObject sets the search path to contain all directories it had to walk
before finding that page. If EMBPERL_OBJECT_STOPDIR is set the path contains
all directories up to the in EMBPERL_OBJECT_STOPDIR specified one.

This frame page can now include other pages, using the
HTML::Embperl::Execute method. Because the search path is set by
EmbperlObject the included files are searched in the directories starting at
the directory of the original request walking up thru the directory which
contains the base page. This means that you can have common files, like
header, footer etc. in the base directory and override them as necessary in
the subdirectory.
================================

The "original" file (content.html) is in the same directory as base.epl
(/usr/local/apache/htdocs) but Embperl can't find content.html so it returns
the notfound.html file which interestingly is in the SAME base directory!

It seems that the problem is that "base.epl" is in the directory ABOVE the
DocumentRoot. I've tried [- Execute (../*)  to get the file from the next
directory UP but that doesn't work either. :)

Dean

-----Original Message-----
From: Andre Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 12:48 PM
To: '[EMAIL PROTECTED]'
Subject: Re: [ -Execute ( ' * ' ) -] Doesn't Work!


On Mon, Sep 30, 2002 at 12:14:14PM -0700, Powers, Dean wrote:
> Problem: In base.epl [ -Execute ( ' * ' ) -] doesn't display the
originally
> request file, such as content.html Instead it displays the notfound.html
> message.

Try it without the spaces between quotation marks and asterisk, like this:
[- Execute ( '*' ) -]

Andre

--
"The inside of a computer is as dumb as hell, but it goes like mad!"
(Physicist Richard Feynman)


---------------------------------------------------------------------
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]

Reply via email to