cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cyril vidal" <cyr.vi...@wanadoo.fr>
Subject Re: xsp + parameters
Date Tue, 31 Dec 2002 10:08:18 GMT
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message