You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fab Psycho <ps...@hotmail.com> on 2005/05/18 19:23:42 UTC
byte[] display
Hi,
I've got a transmission problem from class returning a byte[] to a js.
var content;
content=Packages.org.FileManager.read("thefile");
cocoon.sendPage("jx1.jx", {content:content});
-> jx :<content>#{content}</content>
->xsl displays [Ljava.lang.Object;@aaaaaa
Is there a way to convert byte[] to var in js or something ?
Regards,
Fab
_________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: byte[] display
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Fab Psycho wrote:
> Hi,
>
> I've got a transmission problem from class returning a byte[] to a js.
>
> var content;
> content=Packages.org.FileManager.read("thefile");
> cocoon.sendPage("jx1.jx", {content:content});
>
> -> jx :<content>#{content}</content>
> ->xsl displays [Ljava.lang.Object;@aaaaaa
>
> Is there a way to convert byte[] to var in js or something ?
Convert it to string in your flowscript
--
Leszek Gawron lgawron@mobilebox.pl
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org