cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Reyes" <rich...@voxsant.com>
Subject SunRise - Accessing Parameter
Date Thu, 26 Sep 2002 20:55:37 GMT
Hi Guys,

In http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponents.html 

How can I access the resource parameter in loginpage.xml ( the underlined part ).

<?xml version="1.0"?>
<content>
 <form>
  <url>foo-login?resource=foo-protected</url>
  <field name="name" type="te

How can I access this parameter in this pipeline? after logging in.

            <map:match pattern="foo-login">
                 <map:act type="sunRise-login">
                       <map:parameter name="handler" value="foo-handler"/>
                       <map:parameter name="parameter_name" value="request:name"/>
                       <map:parameter name="parameter_password" value="request:password"/>
                       <!-- If the authentication is successfull then this redirect will
be performed -->
                       <map:redirect-to uri="foo-resource-1.html"/>
                 </map:act>
                <!-- authentication failed: -->
                <map:generate src="login-failed.xml"/>
                <map:transform src="login-failed.xsl"/>
                <map:serialize/>
            </map:match>

Thanks
Richard
Mime
View raw message