You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Tomsic <pt...@yahoo.com> on 2003/06/17 20:29:49 UTC

calling a custom method in a bean?

Is it possible to alter the pipeline of cocoon
so that we're calling a custom javabean that would
generate the XML for the transform?  (or at least call
our own method from our bean?)

More specifically, one of our reports needs column
headers that have the date(s) of fiscal years on them.
This information comes from an order that was placed
in, say FQ4-2003, so our column headers would be:
30.June 2003,7.July.2003,14.July.2003, etc.

We need to figure out the first monday of a quarter,
then add 7 to it for 13 wks.
We've got a method that does this in Java, but how do
we call that method from cocoon?
Just wondering if anyone's dealt w/ this before?

thanks

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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


Re: calling a custom method in a bean?

Posted by Ralph Goers <rg...@dslextreme.com>.
I believe you should be able to call the java method in your transform 
passing it the XML date as input and getting the first Monday as the result.

At 6/17/2003 11:29 AM, you wrote:
>Is it possible to alter the pipeline of cocoon
>so that we're calling a custom javabean that would
>generate the XML for the transform?  (or at least call
>our own method from our bean?)
>
>More specifically, one of our reports needs column
>headers that have the date(s) of fiscal years on them.
>This information comes from an order that was placed
>in, say FQ4-2003, so our column headers would be:
>30.June 2003,7.July.2003,14.July.2003, etc.
>
>We need to figure out the first monday of a quarter,
>then add 7 to it for 13 wks.
>We've got a method that does this in Java, but how do
>we call that method from cocoon?
>Just wondering if anyone's dealt w/ this before?
>
>thanks
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org


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