ent: Monday, August 02, 2010 5:21 AM
To: Thompson, John; embperl@perl.apache.org
Subject: RE: Execute({ object => '...' })
Hi,
You don't need Embperl::Object. Embperl::Object is only if you need to
search (sub-)directories, like objects.
You should do something th
- test.epl -
[$ sub head $]
Text in head
[$ endsub $]
-- Forwarded message --
From: Thompson, John
Date: 2010/7/27
Subject: RE: Execute({ object => '...' })
To: embperl@perl.apache.org
OK, so I’ve decided to try to use import instead. I’m seeing th
but I get the same error.
From: Andrew O'Brien [mailto:andr...@oriel.com.au]
Sent: Tuesday, July 27, 2010 10:07 AM
To: Thompson, John
Subject: RE: Execute({ object => '...' })
Can you use import => 1 to get all the subs into the current namespace
and just check
> From: Thompson, John [mailto:jth...@midwestern.edu]
> Sent: Tuesday, 27 July 2010 2:47 AM
Hi John,
> I am attempting to use the Execute({ object => '...' })
> feature but am seeing strange results. Here are my two files:
Firstly, test.epl does not do what you think it does. It should read:
to:jth...@midwestern.edu]
Sent: Tuesday, June 22, 2010 9:31 PM
To: embperl@perl.apache.org
Subject: RE: Execute( sub =>...) and (object => ...)
Ok so I figured out that the Execute( param => ... ) still goes into @param not
@_. Any idea why the ( object => $template ) isn’t working?
Hi John,
> -Original Message-
> From: Thompson, John [mailto:jth...@midwestern.edu]
> Sent: Wednesday, 23 June 2010 5:31 AM
> Ok so I figured out that the Execute( param => ... ) still
> goes into @param not @_. Any idea why the ( object =>
> $template ) isn't working?
I use the foll
Ok so I figured out that the Execute( param => ... ) still goes into
@param not @_. Any idea why the ( object => $template ) isn't working?
From: Thompson, John [mailto:jth...@midwestern.edu]
Sent: Tuesday, June 22, 2010 10:50 AM
To: embperl@perl.apache.org
Subject: Execute( sub =>...) and (ob
quot;Doug Rayner" ;
Sent: Thursday, April 02, 2009 3:19 PM
Subject: RE: Execute() and App objects
Hi Doug,
From within one request, I'm trying to Execute() an HTML
template from
another part of the application. That template is dependent
on App object
methods defined in the _app.pl
Hi Doug,
> From within one request, I'm trying to Execute() an HTML
> template from
> another part of the application. That template is dependent
> on App object
> methods defined in the _app.pl that is in the same directory
> as the HTML
> template. However, the Execute() seems to use th
>
> Something like:
>
> [- Execute syntax="SSI" ('includes/header.shtml') -]
>
> perhaps?
>
Use
[- Execute ({ syntax => "SSI", inputfile => 'includes/header.shtml'}) -]
> Also, what has to be done to get embpcgi.pl to report
> something more useful than just $rc and time?
You might use t
age-
> From: Andrew O'Brien [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 21, 2005 1:48 AM
> To: embperl@perl.apache.org
> Subject: RE: Execute question
>
>
> Allen,
>
> That's all up to how you structure your page construction.
> You will need to eith
Allen,
That's all up to how you structure your page construction. You will need
to either
1. Easier: be able to test for that branch condition early enough in
your page
construction and then have the two Execute()s in a wrapping "if"
statement
Or
2. take advantage of the fact that Execute can
Stefan Cars wrote:
> Ok! THanks for that. Would there be any advantage performance-wise in
> placing alot of code in a perl-module instead of requiring it ? It
> looks nicer and all that in a module, but performancee ?
>
There is no performance difference between a module and a require, actually
a
Ok! THanks for that. Would there be any advantage performance-wise in
placing alot of code in a perl-module instead of requiring it ? It looks
nicer and all that in a module, but performancee ?
Kind Regards,
Stefan Cars
On Mon, 24 May 2004, Gerald Richter wrote:
> Stefan Cars wrote:
> > Hi!
> >
Stefan Cars wrote:
> Hi!
>
> If I need to init some DB and stuff in each page, what is the most
> efficient way todo that ? Using Execute or do's ?
>
do will always recompile your Perl code, while Execute will only when the
code changes. If the code never changes you can also use require. In case
Luiz, Gerald
Thanks for your feedback.
If I just execute the file it seems that the "global" (for that file) value
sticks - but that it will be purged after some time. At least I get erratic
behaviour trying to do that.
Maybe I'll make it as object. Suits me better, I think.
> You can make it
Kaare Rasmussen wrote:
> If I do this
>
> Execute ({inputfile => 'findList.sub', import => 1});
>
> Then this line in findList.sub will not be executed if it's outside
> the subs in findList.sub:
>
When you say inport => 1 only code inside [! !] is executed, because you
want to import and not to
On Wed, 3 Dec 2003 18:41:16 +0100, Kaare Rasmussen <[EMAIL PROTECTED]> wrote:
If I do this
Execute ({inputfile => 'findList.sub', import => 1});
Then this line in findList.sub will not be executed if it's outside the
subs
in findList.sub:
[- $req = shift -]
But I'm using the $req object, so
---
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 17, 2003 6:03 PM
> Subject: Re: Execute without __PACKAGE__
>
>
>> Luis Fernando:
>>
>> Thank you
> I have an additional question:
> What is the "isa" parameter and how can i use it?, i did not see it in the
> embperl documentation in the site http://perl.apache.org/embperl
I'm not sure where it is on the site, but its documented as part of the
Execute command. Usage would be something like t
|
+-
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 6:03 PM
Subject: Re: Execute without __PACKAGE__
> Luis Fernando:
>
> Thank you for your help, i will check embpelr::object.
>
> I have an a
On Tue, 2003-06-17 at 13:03, [EMAIL PROTECTED] wrote:
> Luis Fernando:
>
> Thank you for your help, i will check embpelr::object.
>
> I have an additional question:
> What is the "isa" parameter and how can i use it?, i did not see it in the
> embperl documentation in the site http://perl.apache.
Luis Fernando:
Thank you for your help, i will check embpelr::object.
I have an additional question:
What is the "isa" parameter and how can i use it?, i did not see it in the
embperl documentation in the site http://perl.apache.org/embperl
Thank you
Carlos Kassab
> On Mon, 2003-06-16 at 17:02
On Mon, 2003-06-16 at 17:02, [EMAIL PROTECTED] wrote:
> Hi all:
>
>
> Eplsite(www.eplsite.org) is a good system to run as CGI but when running
> with mod_perl it will consume memory because it is using Execute with
> __PACKAGE__
>
> The main file is called index.epl and it is executing some file
> Given:
>
> for (1 .. 2) {
> $fdat{'arg'} = $_;
> Execute ({inputfile => 'getCalendar.htm', recipe =>
> 'EmbperlLibXSLT', xsltstylesheet =>
> 'xsl/small_cal.xsl'});
> }
>
> The versions: Embperl 2.0b8, perl 5.6.1, apache
> 1.3.27, mod_perl 1.27. It seems to me that after the
> first XSLT Execute,
I found the problem. It's all on my end. Sorry to bother you with this one!
Scott
On Tuesday 14 January 2003 11:59 am, Gerald Richter wrote:
> >I changed the top level file to just:
> >[- Execute ('page.epl' ); -]
> >
> >and I'm still getting errors in my database because the $req is not going
I made it like this:
[$ var $rec $req %qdat %ssdat %srdat @set $set $names %db $key $allow_update
$allow_demolinks @values $creator $datetime $eventcode $user_id $info
$sth_eventlog $review_type $review_os $recurring_total $]
[+ $_[0] +]
[- $req = shift; -]
[-
and I still got the error.
When I
>I changed the top level file to just:
>[- Execute ('page.epl' ); -]
>
>and I'm still getting errors in my database because the $req is not going
to
>page.epl.
Strange. What do you get if you add a
[+ $_[0] +]
to page.epl _before_ the shift?
Does it change anything if you remove the [$ var $req
I changed the top level file to just:
[- Execute ('page.epl' ); -]
and I'm still getting errors in my database because the $req is not going to
page.epl.
Scott
On Tuesday 14 January 2003 07:16 am, Gerald Richter wrote:
> >I'm attempting to execute a page and redirect the output to a file. This
>I'm attempting to execute a page and redirect the output to a file. This is
>all that's in the page I'm loading:
>[- Execute({inputfile=> 'page.epl', output => '/tmp/output.html' }); -]
Not quite sure if this is the problem, but it must be outputfile instead of
output
Gerald
---
> Thanks for the reply. My application involves accessing the new Amazon
> XML/SOAP Web service. After much reading, I've decided to use SOAP instead
> of XSLT. It appears that by using SOAP I can avoid having to use an XSLT
> processor.
>
> Hopefully, you advice regading automaticallly executed X
> http://xml.amazon.com/onca/xml2...";>Click on Link
>
> I'd like to have xml data display on my pages without requiring users to
> click on a URL.
>
When using Embperl 2, mod_perl 2 and Apache 2 you can use the output of a
subrequest as input for Embperl. This is done by utilizing the APache
Hi,
>
> Thank you very much for the explanation of why [- Execute ('*') - ] isn't
> working for my application. I did not realize that the "walking the tree"
> concept didn't apply to files with a full path, so now I understand.
> However, for a template type system like Embperl, I guess I don't
At Mon, 30 Sep 2002 12:14:14 -0700, Dean Powers wrote:
> Problem: In base.epl [ -Execute ( ' * ' ) -] doesn't display the originally
> request file, such as content.html Instead it displays the notfound.html
> message.
i presume you've tried enabling dbgObjectSearch (and lots of other
debug optio
On Tue, Oct 01, 2002 at 07:39:56PM -0700, Powers, Dean wrote:
> I'd like to have xml data display on my pages without requiring users to
> click on a URL.
>
> Anyone know how to construct an Execute Statement which sends out a http
> request when the page is generated?
use LWP and do your own r
Found a solution using a traditional Perl UserAgent Request. I wonder if
there is a more elegant way using Embperl, especially the next step for
parsing the returned XML.
The traditional method that gets the job done:
[-
use LWP::UserAgent;
# use HTTP::Request::Common qw(POST);
$ua = new LWP::U
s, Dean; 'Ed Grimm'
Cc: [EMAIL PROTECTED]
Subject: Re: [ -Execute ( ' * ' ) -] Doesn't Work!
>
> So, my question (which hopefully Gerald will see)
I see (and answer, as far as other didn't done it already) all the questions
on the list, but I not always ha
>
> So, my question (which hopefully Gerald will see)
I see (and answer, as far as other didn't done it already) all the questions
on the list, but I not always have time to immediatly answer them...
> is WHY Embperl works
> perfectly for serving base.epl, notfound.html, and explicitly requested
-
From: Ed Grimm [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 5:40 PM
To: Powers, Dean
Cc: [EMAIL PROTECTED]
Subject: RE: [ -Execute ( ' * ' ) -] Doesn't Work!
Ugh. You're right; I found it in the HTML::EmbperlObject manpage.
(This is from Embperl 1.3.3; we'
ed by [- Execute ('*') - ].
>
> After all, they are ALL coming out of /htdocs and Apache/Embperl serves then
> quite well, EXCEPT for [- Execute ('*') - ].
>
> Dean
>
> -Original Message-
> From: Ed Grimm [mailto:[EMAIL PROTECTED]]
> Sent: Mo
, they are ALL coming out of /htdocs and Apache/Embperl serves then
quite well, EXCEPT for [- Execute ('*') - ].
Dean
-Original Message-
From: Ed Grimm [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 5:03 PM
To: Powers, Dean
Cc: [EMAIL PROTECTED]
Subject: RE: [
m the /htdocs directory?
>
> Thanks for everyone's help, I think we're getting closer to an answer,
> which is important to all of us who want to support dozens or even
> hundreds of virtual hosts with a SINGLE base.epl and boilerplate files
> out of /htdocs.
>
> Dea
#x27;re getting closer to an answer, which
is important to all of us who want to support dozens or even hundreds of
virtual hosts with a SINGLE base.epl and boilerplate files out of /htdocs.
Dean
-Original Message-
From: Ed Grimm [mailto:[EMAIL PROTECTED]]
Sent: Monday, September
with ('*') which is asking for
the file "indirectly" instead of explicitly.
Dean
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 3:42 PM
To: '[EMAIL PROTECTED]'
Subject: Re: [ -Execute ( ' * '
On Mon, 30 Sep 2002, Andre Landwehr wrote:
> On Mon, Sep 30, 2002 at 12:56:24PM -0700, Powers, Dean wrote:
> > I think the problem is related to the "path" that Embperl sets when it
> > "walks" up the directory path to base.epl
> > (...)
> > It seems that the problem is that "base.epl" is in the d
On Mon, Sep 30, 2002 at 01:28:31PM -0700, Powers, Dean wrote:
> I think you are on to something here. But it's interesting that base.epl
> isn't in the DocumentRoot either, but Embperl finds it in the directory
> above DocumentRoot.
>
> So, since I'm going to eventually have hundreds of sites (
late files?
In the meantime, I'll explore Andre's alternatives.
Thanks!
Dean
-Original Message-
From: Andre Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 1:16 PM
To: '[EMAIL PROTECTED]'
Subject: Re: [ -Execute ( ' * ' ) -] Doesn't Wor
On Mon, Sep 30, 2002 at 12:56:24PM -0700, Powers, Dean wrote:
> I think the problem is related to the "path" that Embperl sets when it
> "walks" up the directory path to base.epl
> (...)
> It seems that the problem is that "base.epl" is in the directory ABOVE the
> DocumentRoot. I've tried [- Exec
at 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, P
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 th
>I'm calling a Embperl page from a package module which gets call by
>Embperl page
>
>Embperl >>> Package >>> Embperl
>
>Will it keep its global scooping?
Yes
Gerald
-
Gerald Richterecos electronic communication services gmbh
Int
r [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 1:51 PM
To: Aldo Letellier; [EMAIL PROTECTED]
Subject: Re: execute and udat
>I'm concerned about losing session scooping in the calling page.
%fdat and %udat are both global to _all_ Embperl pages of one request,
so
there is no
>I'm concerned about losing session scooping in the calling page.
%fdat and %udat are both global to _all_ Embperl pages of one request, so
there is no need to pass them to your waitpage, they will be already there
Gerald
-
Gerald R
ng
Please wait...
[$HIDDEN$]
document.forms[0].submit();
-Original Message-
From: Gerald Richter [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 3:01 AM
To: Aldo Letellier; [EMAIL PROTECTED]
Subject: Re: execute and udat
>Can the following be done:
>
>my
>Can the following be done:
>
>my ( $page, $fdat, $udat ) = @_;
>HTML::Embperl::Execute({inputfile => $page, fdat => $fdat, udat =>
$udat });
>exit;
No, that can't be done (fdat parameter is ok, but udat parameter doesn't
exists). Why do like to do it?
Gerald
---
t; -Original Message-
> > From: Justin Harrison [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 30, 2002 12:37 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Execute
> >
> >
> > Hi Gerald,
> >
> > Thanks for your response. It definitely d
gt; -Original Message-
> From: Justin Harrison [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Execute
>
>
> Hi Gerald,
>
> Thanks for your response. It definitely does.
>
> > -Original Message
Hi Gerald,
Thanks for your response. It definitely does.
> -Original Message-
> From: Gerald Richter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 2:53 AM
> To: Justin Harrison; [EMAIL PROTECTED]
> Subject: Re: Execute
>
>
>
>
> > I
irst parameter
Hope this makes things a little bit more clear
Gerald
> > -Original Message-
> > From: Justin Harrison [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 25, 2002 9:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Execute
>
it didn't
find them in the current name space.
> -Original Message-
> From: Justin Harrison [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 9:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Execute
>
>
> Thank you Gerald. I love you.
>
> &g
> It seems to work in some fashion with Embperl Meta Subs..
>
> Is it by design that it seems not to function with perl subs? Am I doing
> something wrong? :-( Is there anyway to make it function with perl subs?
>
It also works with perl subs, but you either need to tell Execute that you
are lo
>
> In the 1.3 docs it's laid out pretty well here:
>
>
http://perl.apache.org/embperl/pod/doc/doc13/HTML/Embperl.-page-3-.htm#sect_
4
>
> I'm not sure if there's an equivalent section in the 2.0 docs yet.
>
I am just in process of rewriting this part of the docs for 2.0 and have
removed the old
On Tue, Jul 23, 2002 at 11:02:07PM -0400, Justin Harrison wrote:
> It seems to work in some fashion with Embperl Meta Subs..
>
> Is it by design that it seems not to function with perl subs? Am I doing
> something wrong? :-( Is there anyway to make it function with perl subs?
The easy perl sub w
> Sent: Tuesday, July 23, 2002 10:26 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Execute
>
>
> Thanks for your response.
>
> I am trying this in embperl 2 b8.
>
> In the main embperl file:
>
> [- $r = shift -]
>
> [- $r->{content} = Execute ({
tle" via package
"Embperl::__2" (perhaps you forgot to load "Embperl::__2"?)"
I threw Data::Dump on $r->{content} and it revealed:
bless({}, "Embperl::__2")
Any ideas? :-(
> -Original Message-
> From: Gavin Carr [mailto:[EMAIL PROTECTED]]
>
On Mon, Jul 22, 2002 at 05:54:16PM -0400, Justin M. Harrison wrote:
> Is there any consolidated documentation on what exactly Execute can do,
> and how files can be brought in or executed? Everything I have found
> about it seems to be scattered about Embperl, Embperl::Object, etc, in
> both docum
Hi!
>
> I have in Apache mod_perl content handler
> sub SHOW
> {
>
>
> $res=&HTML::Embperl::Execute ({ inputfile => $r->filename,mtime=>undef,
>
> escmode=>0,options=>16,req_rec=>$request,fdat=>{},ffld=>[],
> output => \$of_content });
>
> }
>
On Tue, Mar 05, 2002 at 08:36:17PM +0100, Gerald Richter wrote:
> >
> > Yep. This works like a charm. Now I just have to decide whether or
> > not to run with a custom patch in production :-)
> >
>
>
> You can savely use it. This patch is a much better solution then the old
> one, which is ver
>
> Yep. This works like a charm. Now I just have to decide whether or
> not to run with a custom patch in production :-)
>
You can savely use it. This patch is a much better solution then the old
one, which is very old and from a time where $ENV{MOD_PERL} didn't had
exists.
Gerald
P.S. Star
On Tue, Mar 05, 2002 at 04:40:31PM +0100, Gerald Richter wrote:
> > But Embperl immediately assumes it should call Apache->request() if
> > Apache is loaded. Is there any way around this?
>
> You could try to change the line 737 in Embperl.pm from
>
> elseif (exists $INC
>
> to
> e
> But Embperl immediately assumes it should call Apache->request() if
> Apache is loaded. Is there any way around this?
You could try to change the line 737 in Embperl.pm from
elseif (exists $INC
to
elsíf ($ENV{MOD_PERL})
Let me know if this works for you, so I could try to make E
> > > My question is... how can I get the same behaviour in my intranet
portal
> > > code below?
> >
> > You can try to reset the http status, just before the end of the request
> > (after executeing the footer)
> >
> > $req_rec -> status (200) ;
> >
> > but I am not sure if this works.
>
> Nope,
Gerald Richter wrote:
>
> >
> > My question is... how can I get the same behaviour in my intranet portal
> > code below?
>
> You can try to reset the http status, just before the end of the request
> (after executeing the footer)
>
> $req_rec -> status (200) ;
>
> but I am not sure if this wor
>
> My question is... how can I get the same behaviour in my intranet portal
> code below?
You can try to reset the http status, just before the end of the request
(after executeing the footer)
$req_rec -> status (200) ;
but I am not sure if this works.
Gerald
Andre Landwehr writes:
>On Sun, Oct 15, 2000 at 10:08:00AM -0500, John Aughey wrote:
>> in an epl file to include a common nav bar in many .epl files. I would
>> like to evaluate the navbar.epl script in the same namespace as the
>> calling script. I want to do this so the navbar.epl has access
>check out
>http://perl.apache.org/embperl/Embperl.pod.2.html#By_calling_HTML_Embperl_E
xecut
>
>find the package parameter.
>
>i haven't used this so far , but i think u can call it like this:
>HTML::Embperl::Execute ({ inputfile => '/path/to/your.html', package =>
__PACKAGE__,});
do so works,
check out
http://perl.apache.org/embperl/Embperl.pod.2.html#By_calling_HTML_Embperl_Execut
find the package parameter.
i haven't used this so far , but i think u can call it like this:
HTML::Embperl::Execute ({ inputfile => '/path/to/your.html', package =>
__PACKAGE__,});
Andre Landwehr wro
On Sun, Oct 15, 2000 at 10:08:00AM -0500, John Aughey wrote:
> in an epl file to include a common nav bar in many .epl files. I would
> like to evaluate the navbar.epl script in the same namespace as the
> calling script. I want to do this so the navbar.epl has access to some
> variables that ar
>
> Btw. do multiple 'execute' functions get called in parallel when done
> in one embperl file? eg. when I have 5 files included in index.html
> via Execute could they start accessing db at the same time?
>
No, Execute's are execute in the order they appear in your sourcefile
> If so - is there
> Is it possible to use execute function as 'include' so it does not
> parse the file just includes it in the calling file and parses them
> all together?
You may get the result you want by trying:
[- Execute ({inputfile => 'filename.html', package => __PACKAGE__}) -]
This will have the same
hi,
>
> my little question is: once I've used Execute to importe a set of subs
> (from an Embperl page with [$sub$] tags) into the current namespace, do
> these subs get cleaned up or do they persist?
>
> I read the man pages through adn through and could not find any hint.
>
sub's are never
81 matches
Mail list logo