cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John L. Webber" <John.Web...@jentro.com>
Subject Re: xsp:logic block does not compile
Date Mon, 21 Mar 2005 07:45:47 GMT
AFAIK this is not a bug - the <xsp:page> tag is replaced during
processing, but the generated document needs to have a root element,
which you need to supply.

John

Schirmacher wrote:
> This simple xsp file compiles only if the <xsp:logic>
> block is nested within another tag. If I remove the
> <xyz> tags then I get a NullPointerException. This
> seems to be caused by the <xsp-request:get-parameter>
> tag, because if I delete those lines then the code
> works, with or without the <xyz> tag.
> 
> I do not understand why the
> <xsp-request:get-parameter>  must be nested within
> another tag. Is this a cocoon bug?
> 
> I am using cocoon 2.1.6, tomcat 5.0.28, java
> 1.4.2_05-b04.
> 
> Here's the code:
> 
> <?xml version="1.0" encoding="iso-8859-1"?>
> <xsp:page language="java"
> xmlns:xsp="http://apache.org/xsp"
> xmlns:xsp-request="http://apache.org/xsp/request/2.0">
>     <xyz>
>     <xsp:logic>
>         boolean delete = (<xsp-request:get-parameter
> name="DeleteButton"/> != null);
>     </xsp:logic>
>     </xyz>
> </xsp:page>
> 
-- 
---------------------------------------------------------
 Jentro Technologies GmbH
 John L. Webber, Software Development
---------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message