Thanks for spotting the important bits in the tutorial Geoff.
At 14:01 23/12/02, you wrote:
This is a shame but I suppose only to be expected. What I was really after was some easy way of using exisitng PHP applications within a larger Cocoon framework. If the PHP has to generate valid XML then that limits things quite a bit. I suppose I could persuade it to generate xHTML, but even that will be a pain.I'm not a PHP user in cocoon, but I can provide some hints on the information you asked about. First, the biggest clues come from an odd location (http://xml.apache.org/cocoon/tutorial/tutorial-develop-webapp.html): ---------------------- PhpGenerator This generator functions just like the JspGenerator, but with PHP templates. The PHP must generate valid XML, and be a file in the context.
> You'll have to look at the php site for more information there - it seems
the servlet does depend on PHP being installed. http://www.php.net/manual/en/ref.java.php
Now I know the PHP Servlet is part of the PHP project then I can RTFM :-)
You'll have to look in the code of PHPGenerator to confirm, but I believe that cocoon will pass the request object to the servlet, so potentially all request parameters should survive. However, I don't believe that cookies share the same luck, but again you'll have to check it out yourself.
Looks primising. Thanks
Alex
Available for java/perl/C++/web development in London, UK or nearby. Apache FOP, Cocoon,
Turbine, Struts,XSL:FO, XML, Tomcat, First meeting free.http://www.OWAL.co.uk/
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>