You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Nanda Mounasamy <na...@adone.com> on 2001/03/23 01:44:38 UTC
producers - J2EE, COCOON Design
I want to design a Java Component to parse Request URI, load config from a
file, or from a memory resident object, determine XSP and XSL for
processing, process the XSP, transform into html and deliver to users.
Request URI will have information to locate the XSP/XSL
(directory/index.jsp) and the required configuration (nanda). The XSP/XSL
location passed in the URI is relative to Document Root of the Web
Application.
I am wondering if Cocoon producers can help in this.
URI : http://www.domain.com/webapplication-context/
<http://www.domain.com/webapplication-context/JavaComponent/nanda/directory/
index.jsp> JavaComponent/nanda/directory/index.jsp
System Details: WLS 6.0, Cocoon1.8
Thanks & regards
Nanda
Re: producers - J2EE, COCOON Design
Posted by Thomas Patterson <tp...@telisphere.com>.
I've written a producer that does something very similar. It reads from a config file indicated as part of the URL (for example, salePage.xml) and then produces a DOM based on the directives within the config file. It then adds processing instructions (again, from the config file) to the DOM for Cocoon to process.
I think that this is the standard way that Producers are intended to work.
-Tom
----- Original Message -----
From: Nanda Mounasamy
To: cocoon-users@xml.apache.org
Sent: Thursday, March 22, 2001 4:44 PM
Subject: producers - J2EE, COCOON Design
I want to design a Java Component to parse Request URI, load config from a file, or from a memory resident object, determine XSP and XSL for processing, process the XSP, transform into html and deliver to users.
Request URI will have information to locate the XSP/XSL (directory/index.jsp) and the required configuration (nanda). The XSP/XSL location passed in the URI is relative to Document Root of the Web Application.
I am wondering if Cocoon producers can help in this.
URI : http://www.domain.com/webapplication-context/JavaComponent/nanda/directory/index.jsp
System Details: WLS 6.0, Cocoon1.8
Thanks & regards
Nanda