You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Richard Reyes <ri...@voxsant.com> on 2002/10/02 03:40:21 UTC
Sunrise - Sitemap ????
Hi Guys,
I am trying to use Actions as my Authentication for my Sunrise, but I cannot proceed to the protected resource ( vxsapp-main.html ). The Actions seems to be workin because when I called "vxsapp-authuser" in the browser the browser displays this xml....
<?xml version="1.0" encoding="UTF-8" ?>
- <authentication xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<ID>001</ID>
<role>Employee</role>
- <data>
<fname>Sid</fname>
<lname>Vicious</lname>
</data>
</authentication>
Can you guys check my sitemap below.... specially on <map:match pattern="vxsapp-login"> part...????
<map:match pattern="vxsapp-*.html">
<map:match pattern="vxsapp-main.html">
<map:generate src="xml/home.xml"/>
<map:transform src="xsl/employee.xsl"/>
<map:serialize />
</map:match>
</map:match>
<map:match pattern="vxsapp-authuser">
<map:act type="UserLogin">
<map:parameter name="descriptor" value="context://richard_webapps/descriptor/vxs_employees-dx.xml"/>
<map:parameter name="use-request-parameters" value="true" />
<map:generate type="serverpages" src="xsp/validuser.xsp"/>
<map:serialize type="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 in Advance...
Richard