Look at xsp.xsl in org/apache/cocoon/components/language/xsp/java for
list of all xsp tags.
To solve your problem:
<xsp:logic>
for( Iterator iter = v.iterator; iter.hasNext();) {
<name><xsp:expr>(String)iter.next()</xsp:expr></name>
}
</xsp:logic>
You can also use <xsp:element> if you don't know what the <name>
tag will be.
Artur...
> -----Original Message-----
> From: Volker Schneider [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 2:15 PM
> To: [EMAIL PROTECTED]
> Subject: Iteration inside xsp
>
>
> Dear colleagues,
>
> I want to use xsp to retrieve data from the session. The only problem is,
> that I cannot put list content out to the xsp page.
>
> If I want to write out a list of names which are stored in a vector, how can
> I produce an xsp-page like this:
>
> ...
> <name>Volker</name>
> <name>Peter</name>
> <name>Betty</name>
> ...
>
> an so on. Sure I can iterate in java, but then there must be a chance to
> select what data should be put out.
>
> Where can I find a more detailed xsp-tutorial, where every xsp-tag is
> declared. The things I found mostly were incomplete.
>
> Best regards
> - Volker -
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>