Hi Davide,

i'm not a XML/XSL expert but i think that in
     <map:when test="admin">
you're not testing the variable ; maybe
     <map:when test="@parameter-selector-test='admin'">
should work.

hope this help
Flavio

>-- Original Message --
>Reply-To: [EMAIL PROTECTED]
>Date: Tue, 27 Jan 2004 12:45:06 +0100
>To: [EMAIL PROTECTED]
>From: Davide <[EMAIL PROTECTED]>
>Subject: Re: Pipeline Caching
>
>
>At 09:49 AM 27-01-04, you wrote:
><map:pipeline caching="off">
>
>Davide wrote:
>
>>Hi, i've a question about caching; I've this pipeline:
>><map:match pattern="admin">
>>     <map:act type="auth-protect">
>>         <map:parameter name="handle
>" value="navigation"/>
>>         <map:select type="parameter">
>>           <map:parameter name="parameter-selector-test"
>> value="{session-context:authentication/authentication/role}"/>
>>               <map:when test="admin">
>>
>    <map:generate src="content/adminareatemp.xml"/>
>>                 <!--<map:parameter name="use-request-parameters"
>> value="true"/>-->
>>                 <!--<map:generate type="jsp" src="jsp/admin_main.jsp"/>-->
>>                 <!--<map:
>ransform src="style/admin_main_html.xsl"/>-->
>>                 <map:serialize type="xml"/>
>>             </map:when>
>>              <map:otherwise>
>>                  <map:generate src="content/usertemp.xml"/>
>>                  <map:seriali
>e type="xml"/>
>>              </map:otherwise>
>>         </map:select>
>>     </map:act>
>></map:match>
>>This pipeline verify if the user role is admin(with the parameter
>>selector), then if true enters in an admin area, else returns an  err
>r
>>message. It works, but often (maybe because browser caches the page) i

>>get a wrong response: for example i'm admin and it returns error, or i'm

>>normal user and it returns the admin page. By refreshing the page in the

>>browser it return
> ok. So i'd like to make this pipeline not cacheable so
>>that every time the browser requests it and the control on the user role

>>is performed. How to do??
>>Best Regards, Davide
>
>
>---------------------------------------------------------
>-----------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

it still doesn't work...



---------------------------------------------------------------------
To unsub
>cribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to