cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Huttar" <lars_hut...@sil.org>
Subject RE: passing sitemap parameters to XSP?
Date Wed, 11 Aug 2004 16:05:30 GMT
FYI, I have updated http://wiki.apache.org/cocoon/XSPEnvironment
showing this example, which I think should be helpful to some.

Lars

> -----Original Message-----
> From: Lars Huttar [mailto:lars_huttar@sil.org]
> Sent: Wednesday, August 11, 2004 10:55 AM
> To: 'users@cocoon.apache.org'
> Subject: RE: passing sitemap parameters to XSP?
> 
> 
> Thanks Jan. It worked!
> 
> Yes, I had looked at the wiki pages you mentioned, although
> at the time I was searching particularly for how to access
> sitemap parameters.
> You're right, XSPSyntax in particular is helpful in figuring
> out how to use raw Java in XSP.
> 
> Maybe I should put up a little wiki page on this topic,
> or add to one of the existing ones what I just learned.
> 
> Thanks again to both of you who responded (twice).
> 
> Lars
> 
> 
> > -----Original Message-----
> > From: Jan Hoskens [mailto:jh@schaubroeck.be]
> > Sent: Wednesday, August 11, 2004 10:29 AM
> > To: users@cocoon.apache.org
> > Subject: Re: passing sitemap parameters to XSP?
> > 
> > 
> > Try this:
> > 
> > <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0" 
> > xmlns:esql="http://apache.org/cocoon/SQL/v2">
> > 	<language-entry>
> > 		<xsp:logic>String id = 
> > parameters.getParameter("id", "-1");</xsp:logic>
> > 		<class>Language in Country</class>
> > 		<id>
> > 			<xsp:expr>id</xsp:expr>
> > 		</id>
> > 	</language-entry>
> > </xsp:page>
> > 

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


Mime
View raw message