Hi,

Thanks for your response. When I do the following:


>
> Try something like:
>
> <factorial-calcul>result: <xsp:expr>fac(<xsp-request:get-parameter
> name="number" default="0"/>)</xsp:expr></factorial-calcul>
>

I obtain such an error message:

description org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
factoriel_xsp: Line 128, column 32: Incompatible type for method. Can't
convert java.lang.String to long. Line 0, column 0: 1 error

So, I've tried the following code, in the aim to convert String to long:
 <factorial-calcul>result:
<xsp:expr>fac(java:lang.Long.parseLong(<xsp-request:get-parameter
 name="number" default="0"/>))</xsp:expr></factorial-calcul>

but it doesn't run:
Error compiling factoriel_xsp: Line 127, column 57: ')' expected. Line 0,
column 0: 1 error

Cyril.



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to