On Mon, 29 Dec 2003 02:25:39 +0100 [EMAIL PROTECTED] wrote: > Hi, I have a this problem. I'd like to put parsed pieces > of URI into serverpages as parameters. For example: I have > URI "html/english/article/102" (it means, that I want to > get article with ID=102 in english language and in HTML > format). Sitemap could look like as > > <map:match pattern="*/*/*/*"> > <map:generate type="serverpages" src="logic/{3}.xsp"> > <map:parameter name="format" value="{1}"/> > <map:parameter name="language" value="{2}"/> > <map:parameter name="id" value="{4}"/> > </map:generate> > <map:transform src="stylesheets/{3}to{1}.xsl"/> > <map:serialize type="{1}"/> > </map:match> > > I know, that <map:parameter> tag is nonsense, but how to > get the pieces of URI {1}, {2}... into serverpages? (and > how to read them in xsp script?). Yes, needed informations > could be theoretically obtained by parsing URI in xsp > script, but in this case will be not URL scheme > transparent to scripts. (I can decide in the future, that > URI will be not "html/english/article/102" but for example > "english/html/article/102" - and then I will have to > rewrite all the xsp scripts).
Hi, have not tried this, but found it in the mail-archiv <xsp:logic> String format = this.parameters.getParameter("format"); // and all other parameters </xsp:logic> this works, becouse all XSP's are Generators. Regards Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]