Paweł Żukrowski wrote:
Hi All,
is there a way to use parameter form pipeline match
in XSP page?
for example if pipeline match looks like
...
<map:match pattern="**.info">
<map:generate type="serverpages" src="process.xsp"/>
<map:serialixe type="xml"/>
</map:match>
normalyy in pipeline we can use {1}
but how can I use it in process.xsp?

I would recommend to parameterize the logicsheet because that makes the parameter flow visible in the sitemap:

<map:generate type="serverpages" src="process.xsp">
  <map:parameter name="path" value="{1}"/>
</map:generate>

And in your XSP:

try {
    String path = parameters.getParameter("path");
}
catch(ParameterException e) {
    throw new ProcessingException(e);
}

I don't know if the util logicsheet works for this
kind of parameters, you could try it:

<xsp-util:get-sitemap-parameter name="1" />

But I wouldn't recommend this solution, even if it works.

Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to