cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: Order of XSP elements in generated Producers?
Date Wed, 17 May 2000 20:36:26 GMT
"Brett Palmer" <> asked:
>This is probably a basic question, but where do XSP elements need to be
>located in the XML page to be put into the "populateDocument" method?

Suppose you have

<xsp:page ...>
  <xsp:logic>private String s = "hello";</xsp:logic>

Anything inside the first non-XSP element (in this case, foobarpage) is put 
in populateDocument, and so is foobarpage itself. Foobarpage becomes the 
root element of the XML that XSP outputs. So the xsp:logic tag generates 
code outside the method, and xsp:expr goes inside the method - in this 
particular example.

Get Your Private, Free E-mail from MSN Hotmail at

View raw message