[opencms-dev] Impossible to use jsp declarations ?
Nicolas Delsaux
nicolas.delsaux at online.fr
Fri Jun 13 13:16:01 CEST 2003
On Fri, 13 Jun 2003 11:09:04 +0200, Alexander Kandzior <alex at opencms.org>
wrote:
> Nicolas,
>
> you can't mix JSP declarations <%! ... %> with JSP output like <%= xxx
> %>. This is so in all JSP, and it is not related to OpenCms.
Like used to say one of my old friends "oops !"
>
> If your really need to write to your JSP inside your method, you must
> pass the "out" object from the JSP to your method on calling. It would
> look like this on your JSP:
>
> <% listFilesAndFolders(out, cms, uri); %>
>
> In your method, you need to use
>
> out.println("something");
Thanks for that precision, Alex !
>
> Best Regards,
> Alex.
--
Nicolas Delsaux
"Nous ne parvenons jamais à des pensées. Elles viennent à nous."
More information about the opencms-dev
mailing list