Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Ugo,
thanks for your help. All is working now ;-)
Peter
On 23 Apr 2004, at 15:42, Ugo Cei wrote:
beyaNet Consultancy wrote:
Ugo,
your eralier suggestion, , worked fine. My only reason for using 
an xsp page is because I can transform it with an xsl stylesheet. Can 
I do the same with an JXTG file?
Of course you can! JXTemplateGenerator is a generator, just like the 
ServerPagesGenerator (XSP). You can put one or more transformations 
(XSL-T or whatever) in your pipeline after the generation stage, 
independent on the type of generator. The transformer only expects a 
stream of SAX events from its upstream sibling in the pipeline.

	Ugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread Ugo Cei
beyaNet Consultancy wrote:
Ugo,
your eralier suggestion, , 
worked fine. My only reason for using an xsp page is because I can 
transform it with an xsl stylesheet. Can I do the same with an JXTG file?
Of course you can! JXTemplateGenerator is a generator, just like the 
ServerPagesGenerator (XSP). You can put one or more transformations 
(XSL-T or whatever) in your pipeline after the generation stage, 
independent on the type of generator. The transformer only expects a 
stream of SAX events from its upstream sibling in the pipeline.

	Ugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Ugo,
your eralier suggestion, , worked fine. My only reason for using an xsp page is because I can transform it with an xsl stylesheet. Can I do the same with an JXTG file?

On 23 Apr 2004, at 14:55, Ugo Cei wrote:

beyaNet Consultancy wrote:
Ugo,
in the context o what I am doing within an xsp page which has a jpath xmlns declaration : xmlns:jpath="http://apache.org/xsp/jpath/1.0", how would i use the JXTemplateGenerator you mention?

I suggested that you should use JXTG _instead_ of XSP. You won't certainly be able to use two generators at once.

You could use the JXTemplateTransformer instead, after an XSP generation stage. I wouldn't advise it, though.

By the way, was my solution correct or not?

Ugo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread Ugo Cei
beyaNet Consultancy wrote:
Ugo,
in the context o what I am doing within an xsp page which has a jpath 
xmlns declaration : xmlns:jpath="http://apache.org/xsp/jpath/1.0";, how 
would i use the JXTemplateGenerator you mention?
I suggested that you should use JXTG _instead_ of XSP. You won't 
certainly be able to use two generators at once.

You could use the JXTemplateTransformer instead, after an XSP generation 
stage. I wouldn't advise it, though.

By the way, was my solution correct or not?

	Ugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Ugo,
in the context o what I am doing within an xsp page which has a jpath xmlns declaration : xmlns:jpath="http://apache.org/xsp/jpath/1.0", how would i use the JXTemplateGenerator you mention?

my sitemap pipe is:

			







Peter
On 23 Apr 2004, at 13:20, Ugo Cei wrote:

beyaNet Consultancy wrote:


"userGlobal.getUserName()" does not seem like a valid XPath expression to me. Try "userGlobal/userName". I don't know if it works, since I would never do it that way. Why don't you use the JXTemplateGenerator?

Ugo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread Ugo Cei
beyaNet Consultancy wrote:

"userGlobal.getUserName()" does not seem like a valid XPath expression 
to me. Try "userGlobal/userName". I don't know if it works, since I 
would never do it that way. Why don't you use the JXTemplateGenerator?

	Ugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problems retrieving object elements using jpath (flowscript)

2004-04-23 Thread beyaNet Consultancy
Hi,
I have a flowscript which does the following:

cocoon.sendPage("registered_section1", {"userGlobal":userGlobal});

where userGlobal is a user object. I try to retrieve elements within the java object inside my xsp page by saying:



but am getting the following error message:

org.apache.commons.jxpath.JXPathException: Cannot invoke extension function userGlobal.getUserName; userGlobal

What am I doing wrong?

peter