cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: New release 2.0.1 woes. Continue.
Date Wed, 13 Feb 2002 18:04:58 GMT
> From: Alexander Smirnoff [mailto:asmirnoff@vistar.ca]
> 
> Sorry for misleading about the "global" method, - it works fine.
> 
> The problem actually is different:
> 
> If I put "return" between open and close tags it results in empty
document.
> Look at example:
> 
> <xsp:page language="java" xmlns:xsp="http://apache.org/xsp">
>     <Sample>
>         <xsp:logic>
>             if(true)
>                 return;
>         </xsp:logic>
>     </Sample>
> </xsp:page>
> 
> Quite important feature I would say.

Return is prohibited in the main method of the XSP. Use it in own
methods if you want, but with care. And even if you use it in the main
XSP method (despite the fact that it is not recommended), XSP engine can
cover your mistakes if you set autocomplete-documents to true. Of course
this feature isn't for free, performance of you system will degrade.

PS See ServerPagesGenerator javadoc or source for details.

Vadim

> 
> Alex.
> 


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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