cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Holstead" <James.Holst...@tybrin.com>
Subject RE: sitemap get xml from pure java servlet
Date Mon, 18 Dec 2006 16:58:15 GMT
Could I use my servlet code to define an action and return parameters
that way? 

-----Original Message-----
From: James Holstead [mailto:James.Holstead@tybrin.com] 
Sent: Monday, December 18, 2006 8:38 AM
To: users@cocoon.apache.org
Subject: RE: sitemap get xml from pure java servlet

Thank you Janne,

My apologies, because I just realized that I forgot to mention the need
to pass uri params to the servlet aswell. 

I know generate type="file" doesn't support this..I'll look at the
x/cinclude specifications.


-----Original Message-----
From: Janne K. Olesen [mailto:jko@mobi-tech.com]
Sent: Friday, December 15, 2006 8:24 PM
To: users@cocoon.apache.org
Subject: RE: sitemap get xml from pure java servlet

Hallo James,

there is more than one solution, for example:

1. Cocoon's file transformer is able to read files using "http", so just
use something like

<map:generate src="http://your-servlet-url/" type="file"/>
<map:transform ...>

in your sitemap.

2. Have a look at cInclude-/xInclude-Tranformer to include external
(xml-)-content into your files.

Greetings
Janne K. Olesen


> Hello,
>  
> I have a servlet that processes credit card transaction for various 
> gateways and returns XML responses. Is it possible for a sitemap to
send
> URI arguments to a 'non-xsp' servlet like this and load the resulting 
> XML back through a transformer?  (wanting to keep third party gateway 
> software as a non-cocoon servlet
>  
> Or am I better of just cut and pasting into an xsp:logic and hoping
for
> the best?
>  
>  
> James Holstead
> Software Engineer
> Tybrin Corporation
> tybrin.com
> 850.337.2718
>  
> This e-mail and any files transmitted with it are the property of
TYBRIN
> Corporation, are confidential, and are intended solely for the use of 
> the individual or entity to which this email is addressed. If you are 
> not one of the named recipient(s) or otherwise have reason to believe 
> that you have received this message in error, please delete this
message
> immediately. Any other use, retention, dissemination, forwarding, 
> printing, or copying of this e-mail is strictly prohibited.
>  
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message