Hi Richard,
first, could you please send plain text mails and not html.
I assuem that you want to access the resource parameter
in the redirect, right?
So you can use:
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:redirect-to uri="{resource}"/>
</map:act>
With the above used request action, you have access to all request
parameters using their name. So {resource} is replaced with
the value.
HTH
Carsten
-----Original Message-----
From: Richard Reyes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:56 PM
To: C2 Users
Subject: SunRise - Accessing Parameter
Hi Guys,
In
http://radio.weblogs.com/0103021/stories/2002/02/28/usingTheSunriseComponent
s.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
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>