You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Cenk Uysal <ce...@yahoo.com> on 2002/05/14 13:31:59 UTC
Using JSP as XML source
I have a JSP code that returns XML as a result. And I want to use it
as my XML source in sitemap. How can I do that? Do I have to change
my FileGenerator to ServerPagesGenerator or something like that? Or
is it ok to give the JSP file as a source where I give the XML file?
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using JSP as XML source
Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Cenk Uysal" <ce...@yahoo.com>
> I can't find the directory that you gave. I use Cocoon 2.02
If you have the source of 2.0.2 then you'll find it here:
xml-cocoon.2.0.3\src\webapp\docs\samples\jsp\ (If you have a WAR distro then
look at /docs/samples/jsp/).
But you'd better get the latest Cocoon 2.1-dev and take a look:
xml-cocoon\src\webapp\samples\jsp\.
There is no much difference, but you'll see how to declare the JSP generator
and reader.
Konstantin
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using JSP as XML source
Posted by Cenk Uysal <ce...@yahoo.com>.
I can't find the directory that you gave. I use Cocoon 2.02
__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Using JSP as XML source
Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Cenk Uysal" <ce...@yahoo.com>
> I have a JSP code that returns XML as a result. And I want to use it
> as my XML source in sitemap. How can I do that? Do I have to change
> my FileGenerator to ServerPagesGenerator or something like that? Or
> is it ok to give the JSP file as a source where I give the XML file?
Take a look at the JSP generator. It does exactly what you want. Latest
samples of JSP usage you'll find (HEAD branch) in /src/webapp/samples/jsp.
But note, that using JSP with Cocoon is not well tested and you can have
portability problems. It works fine with Tomcat 3.2/4.0.
--
Konstantin
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>