You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chris Loftus <ch...@jaydeetechnology.co.uk> on 2001/09/14 16:46:52 UTC
Cocoon and J2EE
I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
experience do people have with doing this? What are the pitfalls, how easy
is it to make XSP part of a J2EE web application so that security
constraints are applied?
Many thanks
Chris
Chris Loftus
Training Manager
JayDee Technology Ltd
http://www.JayDeeTechnology.co.uk
Minerva House
Lower Bristol Road
Bath, BA2 9ER
Tel: +44 (0)1970 832554 (Teleworking office)
Tel: +44 (0)1225 789255 (Bath office)
Mobile: +44 (0)7879 897712
Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
Java resources
---------------------------------------------------------------------
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: get parameter from xalan command line
Posted by Mario Muja <ma...@delaval.com>.
Insert <xsl:param name="textParam"/> at the beginning of the stylesheet.
The <xsl:value-of> can remain as it is.
Mario
Ling Kok Choon wrote:
>Hi,
>
> I use Xalan command base to translate a XML file to another xml file with a XSL file, and i
>pass in 1 parameter to the xsl, the command is like:
>
> C:\ java -jar xalan.jar -IN Testing.xml -XSL testing.xsl -PARAM testParam testValue -OUT
>Testing4.xml
>
>and my problem is how to get parameter testParam and the value ( taht is textValue ) from the
>command line ? I tried to use <xsl:value-of select="$textParam" /> in my xsl file, but error
>occur : variableReference given for variable out of context or without definition.
>
>Thank you.
>
>
>Kok Choon.
>--------------------------------------------------------
>Name: Ling Kok Choon
>E-mail: Ling Kok Choon <ko...@brel.com>
>Date: 09/21/01
>Time: 14:17:09
>
>This message was sent by Z-Mail Pro - from NetManage
>NetManage - delivers Standards Based IntraNet Solutions
>--------------------------------------------------------
>
>
>---------------------------------------------------------------------
>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>
get parameter from xalan command line
Posted by Ling Kok Choon <ko...@brel.com>.
Hi,
I use Xalan command base to translate a XML file to another xml file with a XSL file, and i
pass in 1 parameter to the xsl, the command is like:
C:\ java -jar xalan.jar -IN Testing.xml -XSL testing.xsl -PARAM testParam testValue -OUT
Testing4.xml
and my problem is how to get parameter testParam and the value ( taht is textValue ) from the
command line ? I tried to use <xsl:value-of select="$textParam" /> in my xsl file, but error
occur : variableReference given for variable out of context or without definition.
Thank you.
Kok Choon.
--------------------------------------------------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <ko...@brel.com>
Date: 09/21/01
Time: 14:17:09
This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions
--------------------------------------------------------
---------------------------------------------------------------------
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: Cocoon and J2EE
Posted by Sergio Carvalho <se...@acm.org>.
Why do you need HTTP requests? EJBs are not in any way tied to web platforms,
and in fact, neither is Cocoon. You should try to abstract HTTP out of the
design.
On Thu, 20 Sep 2001 18:40:47 -1000, Russell Castagnaro wrote:
From: Russell Castagnaro <ru...@4charity.com>
--
> Aloha Chris,
>
> I'm trying to do this now. Its not all that easy, but not impossible.
>
> My biggest problem is trying to use cocoon in the EJB layer when you
> have no access to an http request. Sometimes you have to create a
> request-like object that can be difficult.
>
>
--
Sergio Carvalho
---------------
sergio.carvalho@acm.org
If at first you don't succeed, skydiving is not for you
---------------------------------------------------------------------
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: Cocoon and J2EE
Posted by Russell Castagnaro <ru...@4charity.com>.
Aloha Chris,
I'm trying to do this now. Its not all that easy, but not impossible.
My biggest problem is trying to use cocoon in the EJB layer when you
have no access to an http request. Sometimes you have to create a
request-like object that can be difficult.
Friday, September 14, 2001, 4:46:52 AM, you wrote:
CL> I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
CL> experience do people have with doing this? What are the pitfalls, how easy
CL> is it to make XSP part of a J2EE web application so that security
CL> constraints are applied?
CL> Many thanks
CL> Chris
CL> Chris Loftus
CL> Training Manager
CL> JayDee Technology Ltd
CL> http://www.JayDeeTechnology.co.uk
CL> Minerva House
CL> Lower Bristol Road
CL> Bath, BA2 9ER
CL> Tel: +44 (0)1970 832554 (Teleworking office)
CL> Tel: +44 (0)1225 789255 (Bath office)
CL> Mobile: +44 (0)7879 897712
CL> Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
CL> Java resources
CL> ---------------------------------------------------------------------
CL> Please check that your question has not already been answered in the
CL> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
CL> To unsubscribe, e-mail: <co...@xml.apache.org>
CL> For additional commands, e-mail: <co...@xml.apache.org>
--
Mahalo,
Russell mailto:russell@4charity.com
Chief Mentor
4Charity - Changing the world,
one click at a time.
---------------------------------------------------------------------
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: Cocoon and J2EE
Posted by Sergio Carvalho <se...@acm.org>.
Ok, just posted it here:
http://sergio.insuasoftware.com/CocoonEjbProofOfConcept.tgz
On Thu, 20 Sep 2001 14:18:41 +0200, Martin Kavalar wrote:
From: Martin Kavalar <ka...@bokowsky.de>
--
> Could someone please post a url where i can download it? Thanks a lot!
>
> Sergio Carvalho wrote:
>
> >At my last company, I created a proof-of-concept Ejb generator. It did work,
> >although it needs some optimizing to be placed in a production environment.
As
> >it is too big to send to the list (1.9Mb tar.gz), I'm sending it to Chris,
who
> >started the thread. Feel free to use it at will. It might be a good starting
> >point.
> >
> >On Fri, 14 Sep 2001 15:46:52 +0100, Chris Loftus wrote:
> >From: Chris Loftus <ch...@jaydeetechnology.co.uk>
> >--
> >
> >>I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
> >>experience do people have with doing this? What are the pitfalls, how easy
> >>is it to make XSP part of a J2EE web application so that security
> >>constraints are applied?
> >>
> >>Many thanks
> >>
> >>Chris
> >>
> >>
> >>Chris Loftus
> >>Training Manager
> >>JayDee Technology Ltd
> >>
> >>http://www.JayDeeTechnology.co.uk
> >>
> >>Minerva House
> >>Lower Bristol Road
> >>Bath, BA2 9ER
> >>Tel: +44 (0)1970 832554 (Teleworking office)
> >>Tel: +44 (0)1225 789255 (Bath office)
> >>Mobile: +44 (0)7879 897712
> >>
> >>Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
> >>Java resources
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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>
> >>
> >
> >
> >--
> >Sergio Carvalho
> >---------------
> >sergio.carvalho@acm.org
> >
> >If at first you don't succeed, skydiving is not for you
> >
> >---------------------------------------------------------------------
> >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>
>
--
Sergio Carvalho
---------------
sergio.carvalho@acm.org
If at first you don't succeed, skydiving is not for you
---------------------------------------------------------------------
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: Cocoon and J2EE
Posted by Martin Kavalar <ka...@bokowsky.de>.
Could someone please post a url where i can download it? Thanks a lot!
Sergio Carvalho wrote:
>At my last company, I created a proof-of-concept Ejb generator. It did work,
>although it needs some optimizing to be placed in a production environment. As
>it is too big to send to the list (1.9Mb tar.gz), I'm sending it to Chris, who
>started the thread. Feel free to use it at will. It might be a good starting
>point.
>
>On Fri, 14 Sep 2001 15:46:52 +0100, Chris Loftus wrote:
>From: Chris Loftus <ch...@jaydeetechnology.co.uk>
>--
>
>>I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
>>experience do people have with doing this? What are the pitfalls, how easy
>>is it to make XSP part of a J2EE web application so that security
>>constraints are applied?
>>
>>Many thanks
>>
>>Chris
>>
>>
>>Chris Loftus
>>Training Manager
>>JayDee Technology Ltd
>>
>>http://www.JayDeeTechnology.co.uk
>>
>>Minerva House
>>Lower Bristol Road
>>Bath, BA2 9ER
>>Tel: +44 (0)1970 832554 (Teleworking office)
>>Tel: +44 (0)1225 789255 (Bath office)
>>Mobile: +44 (0)7879 897712
>>
>>Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
>>Java resources
>>
>>
>>
>>---------------------------------------------------------------------
>>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>
>>
>
>
>--
>Sergio Carvalho
>---------------
>sergio.carvalho@acm.org
>
>If at first you don't succeed, skydiving is not for you
>
>---------------------------------------------------------------------
>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: Cocoon and J2EE
Posted by Sergio Carvalho <se...@acm.org>.
At my last company, I created a proof-of-concept Ejb generator. It did work,
although it needs some optimizing to be placed in a production environment. As
it is too big to send to the list (1.9Mb tar.gz), I'm sending it to Chris, who
started the thread. Feel free to use it at will. It might be a good starting
point.
On Fri, 14 Sep 2001 15:46:52 +0100, Chris Loftus wrote:
From: Chris Loftus <ch...@jaydeetechnology.co.uk>
--
> I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
> experience do people have with doing this? What are the pitfalls, how easy
> is it to make XSP part of a J2EE web application so that security
> constraints are applied?
>
> Many thanks
>
> Chris
>
>
> Chris Loftus
> Training Manager
> JayDee Technology Ltd
>
> http://www.JayDeeTechnology.co.uk
>
> Minerva House
> Lower Bristol Road
> Bath, BA2 9ER
> Tel: +44 (0)1970 832554 (Teleworking office)
> Tel: +44 (0)1225 789255 (Bath office)
> Mobile: +44 (0)7879 897712
>
> Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
> Java resources
>
>
>
> ---------------------------------------------------------------------
> 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>
>
--
Sergio Carvalho
---------------
sergio.carvalho@acm.org
If at first you don't succeed, skydiving is not for you
---------------------------------------------------------------------
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: Cocoon and J2EE
Posted by Martin Kavalar <ka...@bokowsky.de>.
I am very much interested in using J2EE with cocoon also, and was
thinking about implementing that with my friends also. We hadnt thought
about it in too much detail, yet. But keep me updated please. Maybe we
can be of help.
thanks
martin
Jesper Rasmussen wrote:
>im working on exactly the same thing right now so we could share our
>thoughts.
>I post this to the list to get others intrested, but maybe we should keep
>the talk of the list afterwards, it might not be in the general intrest.
>you could email if you prefere it on or of the list, if you want.
>Warning imnew to coocoon ans is just now setting it up and trying to
>integrate it with our J2EE system.
>
>cheers
>Jesper
>- May the source be with you, Linux -
>
>On Fri, 14 Sep 2001, Chris Loftus wrote:
>
>>I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
>>experience do people have with doing this? What are the pitfalls, how easy
>>is it to make XSP part of a J2EE web application so that security
>>constraints are applied?
>>
>>Many thanks
>>
>>Chris
>>
>>
>>Chris Loftus
>>Training Manager
>>JayDee Technology Ltd
>>
>>http://www.JayDeeTechnology.co.uk
>>
>>Minerva House
>>Lower Bristol Road
>>Bath, BA2 9ER
>>Tel: +44 (0)1970 832554 (Teleworking office)
>>Tel: +44 (0)1225 789255 (Bath office)
>>Mobile: +44 (0)7879 897712
>>
>>Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
>>Java resources
>>
>>
>>
>>---------------------------------------------------------------------
>>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>
>
>
---------------------------------------------------------------------
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>
xsp and javascript
Posted by YANLIAN <li...@sheridanc.on.ca>.
Hi:
Does anybody know how to embed javascript into xsl (or xsp) page because I need to
process form in client side. Thanks.
Lian
---------------------------------------------------------------------
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[2]: Cocoon and J2EE
Posted by Russell Castagnaro <ru...@4charity.com>.
Aloha Jesper,
BTW this is pretty easy with standard web containers:
something like this
<security-constraint>
<web-resource-collection>
<web-resource-name>cocoon</web-resource-name>
<description>Fun with xslt</description>
<url-pattern>*.xml</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>cocoonUser</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<role-name>cocoonUser</role-name>
</security-role>
Monday, September 17, 2001, 1:41:15 AM, you wrote:
JR> im working on exactly the same thing right now so we could share our
JR> thoughts.
JR> I post this to the list to get others intrested, but maybe we should keep
JR> the talk of the list afterwards, it might not be in the general intrest.
JR> you could email if you prefere it on or of the list, if you want.
JR> Warning imnew to coocoon ans is just now setting it up and trying to
JR> integrate it with our J2EE system.
JR> cheers
JR> Jesper
JR> - May the source be with you, Linux -
JR> On Fri, 14 Sep 2001, Chris Loftus wrote:
>> I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
>> experience do people have with doing this? What are the pitfalls, how easy
>> is it to make XSP part of a J2EE web application so that security
>> constraints are applied?
>>
>> Many thanks
>>
>> Chris
>>
>>
>> Chris Loftus
>> Training Manager
>> JayDee Technology Ltd
>>
>> http://www.JayDeeTechnology.co.uk
>>
>> Minerva House
>> Lower Bristol Road
>> Bath, BA2 9ER
>> Tel: +44 (0)1970 832554 (Teleworking office)
>> Tel: +44 (0)1225 789255 (Bath office)
>> Mobile: +44 (0)7879 897712
>>
>> Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
>> Java resources
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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>
>>
JR> ---------------------------------------------------------------------
JR> Please check that your question has not already been answered in the
JR> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
JR> To unsubscribe, e-mail: <co...@xml.apache.org>
JR> For additional commands, e-mail: <co...@xml.apache.org>
--
Mahalo,
Russell mailto:russell@4charity.com
Chief Mentor
4Charity - Changing the world,
one click at a time.
---------------------------------------------------------------------
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: Cocoon and J2EE
Posted by Jesper Rasmussen <ge...@cs.auc.dk>.
im working on exactly the same thing right now so we could share our
thoughts.
I post this to the list to get others intrested, but maybe we should keep
the talk of the list afterwards, it might not be in the general intrest.
you could email if you prefere it on or of the list, if you want.
Warning imnew to coocoon ans is just now setting it up and trying to
integrate it with our J2EE system.
cheers
Jesper
- May the source be with you, Linux -
On Fri, 14 Sep 2001, Chris Loftus wrote:
> I'm thinking about integrating Cocoon XSP and J2EE JSPs/Servlets/EJBs. What
> experience do people have with doing this? What are the pitfalls, how easy
> is it to make XSP part of a J2EE web application so that security
> constraints are applied?
>
> Many thanks
>
> Chris
>
>
> Chris Loftus
> Training Manager
> JayDee Technology Ltd
>
> http://www.JayDeeTechnology.co.uk
>
> Minerva House
> Lower Bristol Road
> Bath, BA2 9ER
> Tel: +44 (0)1970 832554 (Teleworking office)
> Tel: +44 (0)1225 789255 (Bath office)
> Mobile: +44 (0)7879 897712
>
> Visit PlanetJava's website http://www.PlanetJava.co.uk for a wealth of free
> Java resources
>
>
>
> ---------------------------------------------------------------------
> 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>