According to the documentation of Apache Cocoon, I canhange the value of the parameter use-locale to false . beacause this parameter aallows tococon to use the locale from the browsers headers. Which which edon't want in this case. We set the default value to french Canada. And if the user chooses a locale. whe want to keep it in the session.
Here is an exceprt of the documentation of the localeAction which I seem to understand. at least a little bit.
----------------------------
<map:action name="locale" src=""> <locale-attribute>locale</locale-attribute>
<use-locale>true</use-locale>
<default-locale language="en" country="US"/>
<store-in-request>false<store-in-request>
<create-session>false<create-session>
<store-in-session>false<store-in-session>
<store-in-cookie>false<store-in-cookie>
</map:action>
Above configuration parameters mean:
- locale-attribute specifies the name of the request parameter / session attribute / cookie that is to be used as a locale (defaults to locale)
- use-locale specifies whether the primary locale provided by the user agent (or server default, is no locale passed by the agent) is to be used
- default-locale specifies the default locale to be used when none found.
- store-in-request specifies whether found locale should be stored as request attribute.
- create-session specifies whether session should be created when storing found locale as session attribute.
- store-in-session specifies whether found locale should be stored as session attribute.
- store-in-cookie specifies whether found locale should be stored as cookie.
Is there something I am missing?
Thanks.
On Tue, 2006-07-18 at 10:22 +0200, Ard Schrijvers wrote:
You can set your pipeline type="noncaching". Though, cocoon comes with build in cache which should just work. I don't consider changing to noncaching pipelines is a good solution. Ard > > Hi, > Sorry I dont speak english very well. > > I have: > cocoon-2.1.6 > tomcat-5.0.27-rc6 > > Everything is ok. I generate XML to PDF . But if i change > something in > my sample document and if i try generate document again I > get it from > some cache system or database. Ofcorse if i change name and generate > document again everything is ok. I must generate many > invoice (nearly > 4 thousands !!) and i can't change this name. I must off this cache > system. Oh i'm read about caching system on cocoon but still > i dont know > how i can off it. > > Greetings > Mariusz Derela > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Yves Zoundi Analyste de l'informatique Section recherche et développements numériques Direction de la Bibliothèque de l'Université Laval Pavillon Jean-Charles-Bonenfant, local 3137 Téléphone : (418) 656 2131, 13249 |
