cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: mutual exclusion on a page
Date Sat, 27 Jul 2002 02:58:06 GMT
> From: sylviat [mailto:sylviat84@yahoo.com]
> 
> Hello -
> 
> I am writing a database application where I want to
> restrict update access to a particular table to one
> user at a time.  What I want to do is implement some
> sort of 'lock' that would be, in java servlets terms,
> saved on the ServletContext level.  I am thinking that
> I will write an action which checks and sets this
> 'lock' (probably just a boolean variable) to control
> the pipeline which delivers the page containing update
> capabilities.
> 
> Here's the question: where/how in cocoon do I save a
> 'global setting', ie equivalent level to java
> ServletContext? 

    public Map act(Redirector redirector, SourceResolver resolver,
                   Map objectModel, String source, Parameters
parameters)
    throws Exception { 
        Context context =
            ObjectModelHelper.getContext(objectModel);



Vadim



> And/or is there a better way to
> achieve mutual exclusion on the delivery of a
> particular page than what I've described?
> 
> I'd be glad to read documentation on this subject if
> someone could please point it out to me.  All of your
> suggestions are appreciated.  Thanks.
> 
> Sylvia
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message