You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ricardo Rocha <ri...@apache.org> on 2000/03/10 01:32:26 UTC

Re: How to invoke XSP programmatically from within Java producer or other XSP ?

Hi Zvi, glad to hear from you

On Tue, 07 Mar 2000, you wrote:
> Anybody know, how to invoke XSP programmatically from within Java
> producer or other XSP ?

I'm working on this, precisely!

Currently, there's no standard mechanism to run the Cocoon engine as an
XSP "subtask". What I'm working on now is a way to instantiate the
processing pipeline from inside an XSP page...

When it comes to run XSP from Java, you may want to use the Cocoon
command-line application.

There's a rather expensive way of including the results of another XSP
page (well, to be honest, to include the results of any [well-formed] web
page, :-)) by means of the <util:include-uri> dynamic tag. For example:

  <util:include-uri href="http://localhost/other.xml"/>

or

  <util:include-uri>
    <util:href><xsp:expr>
      "http://" + myURLLocation 
    </xsp:expr><util:href>
  </util:include-uri>

Re: How to invoke XSP programmatically from within Java producer or other XSP ?

Posted by Alex Muc <al...@utoronto.ca>.
Is it possible to do this yet?  If so, what's the syntax?

Thanks
Alex.

Ricardo Rocha wrote:

> Hi Zvi, glad to hear from you
>
> On Tue, 07 Mar 2000, you wrote:
> > Anybody know, how to invoke XSP programmatically from within Java
> > producer or other XSP ?
>
> I'm working on this, precisely!
>
> Currently, there's no standard mechanism to run the Cocoon engine as an
> XSP "subtask". What I'm working on now is a way to instantiate the
> processing pipeline from inside an XSP page...
>
> When it comes to run XSP from Java, you may want to use the Cocoon
> command-line application.
>
> There's a rather expensive way of including the results of another XSP
> page (well, to be honest, to include the results of any [well-formed] web
> page, :-)) by means of the <util:include-uri> dynamic tag. For example:
>
>   <util:include-uri href="http://localhost/other.xml"/>
>
> or
>
>   <util:include-uri>
>     <util:href><xsp:expr>
>       "http://" + myURLLocation
>     </xsp:expr><util:href>
>   </util:include-uri>