cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Crafter <craft...@fztig938.bank.dresdner.net>
Subject [C2] Selectors and objectModel
Date Thu, 10 May 2001 16:08:16 GMT
Hi All,

	Consider the following pipeline:

   <map:match pattern="login.xml">
       <map:select type="login">
           <map:when test="permitted">
               <map:generate src="{frontend}/index.xml"/>
           </map:when>
           <map:when test="denied">
                <map:generate src="common/{error}.xml"/>
           </map:when>
       </map:select>
       <map:serialize/>
   </map:match>
 
	I'm trying to login a user, and based on the outcome of our login
	procedure, send people to the correct frontend for the type of user
	they are, or send them to an appropriate error page.

	Problem is, modifying the objectModel in the selector code doesn't
	seem to let me do what I want.
	
	ie: 
		objectModel.put("frontend", frontend);
	
	doens't propagate 'frontend' out to 'listOfMaps' in the sitemap
	generated code, causing {frontend} on the generate line above to be
	out 'null'.

	Am I barking up the wrong tree here ? should this be possible with
	selectors ?

	Cheers,

	Marcus
-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   Open Software Associates GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'     Email : Marcus.Crafter@osa.de
          &&&&.        Business Hours : +49 69 9757 200
    &&&&&&&:           After Hours    : +49 69 49086750


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message