cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gajo Csaba" <>
Subject Matcher parameter
Date Mon, 19 Feb 2007 13:36:05 GMT

I have a login page. If the user logs in, he can visit all the pages he  
was visiting before, except a different stylesheet will be used to  
generate the pages. The matcher matches "*.html". The problem I'm having  
is that the {1} parameter I'm using is always empty!
This is the code:

<map:match pattern="*.html">
  	<map:act type="session-validator">
  		<map:parameter name="descriptor" value="docs/config/params.xml"/>
  		<map:parameter name="validate" value="username,password"/>
  		<!-- user is logged in -->
  		<map:generate type="file" src="docs/{1}.xml"/>       <--- HERE
  		<map:transform src="stylesheets/default.xsl"/>
  	<!-- user is not logged in -->
  	<map:generate type="file" src="docs/{1}.xml"/>
  	<map:transform src="stylesheets/default.xsl"/>

So when the user is not logged in, he gets the docs/{1}.xml file without  
any problems. So why does it not work in the case the user is logged in?
I get an error saying "Cannot find .../docs/.xml"

Please help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message