To confirm my action should return an xml like these....

<authentication>
<ID>Unique ID of the user in the system</ID>
<role>The user role</role>
<data>
Any additional optional information can be supplied here. sunRise will store
this data in the session context.
</data>
</authentication>



----- Original Message -----
From: "Richard Reyes" <[EMAIL PROTECTED]>
To: "C2 Users" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:37 PM
Subject: Sunrise Actions


> Hi Guys,
>
> How would i use Actions in Sunrise?
>
> How would the handler ( vxsapp-handler-001 ) know if the authentication (
> vxsapp-authuser ) failed??
>
> Please see references below....
>
> main sitemap:
>
>             <handler name="vxsapp-handler-001"
> xmlns:map="http://apache.org/cocoon/sitemap/1.0";
> xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0";>
>                 <redirect-to uri="cocoon://richard_webapps/home.html"/>
>                 <authentication
> uri="cocoon:raw://sunrise-samples/vxsapp-authuser" />
>             </handler>
>
> sub sitemap:
>
>              <map:match pattern="vxsapp-authuser">
>
>                 <map:act set="processemployee">
>                     <map:parameter name="descriptor"
> value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
>                      ???
>                         ????
>                 </map:act>
>
>             </map:match>
>
>             <map:match pattern="vxsapp-login">
>                 <map:act type="sunRise-login">
>                     <map:parameter name="handler"
> value="vxsapp-handler-001"/>
>                     <map:parameter name="parameter_name"
> value="request:tfUsername"/>
>                     <map:parameter name="parameter_password"
> value="request:tfPassword"/>
>                     <map:redirect-to uri="vxsapp-main.html"/>
>                 </map:act>
>                 <map:redirect-to uri="home.html"/>
>             </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]>
>
>
>



---------------------------------------------------------------------
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]>

Reply via email to