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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
