You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Haul <ha...@informatik.tu-darmstadt.de> on 2004/01/04 16:22:47 UTC

Re: [mod-db] Pb with input module

Laurent Trillaud wrote:
> Hello
> I want to override the default request-param input module in the
> database.xml by another input module.
> For example, if I change name filed in the database.xml provided in
> /samples/databases/mod-db/ to this snippet 
> <table name="user" alias="user">
> <keys>...<keys>
> <values>
>    <value name="name" type="string">
>       <module name="date" parameter="date" type="all"/>
>    <value>
>    ...
> </values>
> </table>
> 
> I got the current date instead of the name given in the query string. All is
> fine.
> But I got a problem when I use another input module.
> For example <module name="request" parameter="remoteAddr" type="all"/>
> return a blank string.

This is old syntax. Please try

   <module name="request" type="all">
      <parameter>remoteAddr</parameter>
   </module>

HTH
	Chris

> And how can I specify the context with the session-context input module. Or
> in another word how can I get the ID in the authentication context
> initialize by the authentication framework?
> Any help will be greatly appreciated.
> Laurent Trillaud
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org


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


Re: [mod-db] Pb with input module

Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
Jean Farenc wanadoo recevoir wrote:

>     But this one
>     <value name="xxxx" type="string">
>         <*mode* name="request" type="all">
>          <parameter>remoteAddr</parameter>
>         </*mode* >    
>      </value>
>     Works.

Sorry, thought to have done copy and paste :-( but you're right, it
should read "mode", not "module".

>     Where I can found the parameters list for this input module.

Please see the javadocs for the module in question.

	Chris.

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


Re: [mod-db] Pb with input module

Posted by Jean Farenc wanadoo recevoir <fa...@wanadoo.fr>.
Bonjour Laurent:

    Je cherche quoi exactement: 
    A faire fonctionner ces statistiques.

    1) Concernant la date pas de problèmes.
    2) Concernant le addr et URI pas de problèmes mais il faut quand même passer de module a mode et ce n'est pas complètement évident.
    3) Pour le role et le login j'essaie plusieurs choses en particulier les session-attr mais ca ne mache pas j'ai du mal à récupérer les valeurs.

    A +
  ----- Original Message ----- 
  From: Laurent Trillaud 
  To: users@cocoon.apache.org 
  Sent: Monday, January 05, 2004 1:46 PM
  Subject: RE: [mod-db] Pb with input module


  Jean tu cherches quoi exactement ?



  Car pour la date, cela devrait être

          <mode name="date" type="all">
           <parameter>date</parameter>
          </mode >    

  pour l'adresse IP

          <mode name="request" type="all">
           <parameter>remoteAddr</parameter>
          </mode >    
  pour l'URI

          <mode name="request" type="all">
           <parameter>RequestURI</parameter>
          </mode >

  là ou cela se complique, c'est pour le contexte de session car il faut un parameter en plus, essaye pour le login

          <mode name="session-context" type="all">
           <parameter>authentication/authentication/ID</parameter>
          </mode >

  pour le role

          <mode name="session-context" type="all">
           <parameter>authentication/authentication/role</parameter>
          </mode >

      
  Laurent




------------------------------------------------------------------------------

  De : Jean Farenc wanadoo recevoir [mailto:farencadakar@wanadoo.fr] 
  Envoyé : lundi 5 janvier 2004 11:23
  À : Christian Haul; users@cocoon.apache.org
  Objet : Re: [mod-db] Pb with input module



  Hi Chris:



      First I wish you an Happy New Year.

      I  work on the same project of  Laurent Trillaud.

      Thanks for your response for Modular Database Action it helps me a lot.



      But the syntax you gave seems not the good

      <value name="xxxx" type="string">
          <module name="request" type="all">
           <parameter>remoteAddr</parameter>
          </module >    
       </value>

      doesn't work

      But this one

      <value name="xxxx" type="string">
          <mode name="request" type="all">
           <parameter>remoteAddr</parameter>
          </mode >    
       </value>

      Works.



      Where I can found the parameters list for this input module.



      Thanks.



  ----- Original Message ----- 

  From: "Christian Haul" <ha...@informatik.tu-darmstadt.de>

  To: <us...@cocoon.apache.org>; <fa...@wanadoo.fr>

  Sent: Sunday, January 04, 2004 4:22 PM

  Subject: Re: [mod-db] Pb with input module



  > Laurent Trillaud wrote:
  > > Hello
  > > I want to override the default request-param input module in the
  > > database.xml by another input module.
  > > For example, if I change name filed in the database.xml provided in
  > > /samples/databases/mod-db/ to this snippet 
  > > <table name="user" alias="user">
  > > <keys>...<keys>
  > > <values>
  > >    <value name="name" type="string">
  > >       <module name="date" parameter="date" type="all"/>
  > >    <value>
  > >    ...
  > > </values>
  > > </table>
  > > 
  > > I got the current date instead of the name given in the query string. All is
  > > fine.
  > > But I got a problem when I use another input module.
  > > For example <module name="request" parameter="remoteAddr" type="all"/>
  > > return a blank string.
  > 
  > This is old syntax. Please try
  > 
  >    <module name="request" type="all">
  >       <parameter>remoteAddr</parameter>
  >    </module>
  > 
  > HTH
  > Chris
  > 
  > > And how can I specify the context with the session-context input module. Or
  > > in another word how can I get the ID in the authentication context
  > > initialize by the authentication framework?
  > > Any help will be greatly appreciated.
  > > Laurent Trillaud
  > > 
  > > 
  > > ---------------------------------------------------------------------
  > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
  > > For additional commands, e-mail: users-help@cocoon.apache.org
  > 

RE: [mod-db] Pb with input module

Posted by Laurent Trillaud <lt...@jouve.fr>.
Ooops, sorry for the french language, this mail wasn’t design to the cocoon
list. I made a wrong reply.
Laurent

________________________________________
De : Laurent Trillaud [mailto:ltrillaud@jouve.fr] 
Envoyé : lundi 5 janvier 2004 13:47
À : users@cocoon.apache.org
Objet : RE: [mod-db] Pb with input module

Jean tu cherches quoi exactement ?
 
Car pour la date, cela devrait être
        <mode name="date" type="all">
         <parameter>date</parameter>
        </mode >    
pour l’adresse IP
        <mode name="request" type="all">
         <parameter>remoteAddr</parameter>
        </mode >    
pour l’URI
        <mode name="request" type="all">
         <parameter>RequestURI</parameter>
        </mode >
là ou cela se complique, c’est pour le contexte de session car il faut un
parameter en plus, essaye pour le login
        <mode name="session-context" type="all">
         <parameter>authentication/authentication/ID</parameter>
        </mode >
pour le role
        <mode name="session-context" type="all">
         <parameter>authentication/authentication/role</parameter>
        </mode >
    
Laurent
________________________________________
De : Jean Farenc wanadoo recevoir [mailto:farencadakar@wanadoo.fr] 
Envoyé : lundi 5 janvier 2004 11:23
À : Christian Haul; users@cocoon.apache.org
Objet : Re: [mod-db] Pb with input module
 
Hi Chris:
 
    First I wish you an Happy New Year.
    I  work on the same project of  Laurent Trillaud.
    Thanks for your response for Modular Database Action it helps me a lot.
 
    But the syntax you gave seems not the good
    <value name="xxxx" type="string">
        <module name="request" type="all">
         <parameter>remoteAddr</parameter>
        </module >    
     </value>
    doesn't work
    But this one
    <value name="xxxx" type="string">
        <mode name="request" type="all">
         <parameter>remoteAddr</parameter>
        </mode >    
     </value>
    Works.
 
    Where I can found the parameters list for this input module.
 
    Thanks.
 
----- Original Message ----- 
From: "Christian Haul" <ha...@informatik.tu-darmstadt.de>
To: <us...@cocoon.apache.org>; <fa...@wanadoo.fr>
Sent: Sunday, January 04, 2004 4:22 PM
Subject: Re: [mod-db] Pb with input module
 
> Laurent Trillaud wrote:
> > Hello
> > I want to override the default request-param input module in the
> > database.xml by another input module.
> > For example, if I change name filed in the database.xml provided in
> > /samples/databases/mod-db/ to this snippet 
> > <table name="user" alias="user">
> > <keys>...<keys>
> > <values>
> >    <value name="name" type="string">
> >       <module name="date" parameter="date" type="all"/>
> >    <value>
> >    ...
> > </values>
> > </table>
> > 
> > I got the current date instead of the name given in the query string.
All is
> > fine.
> > But I got a problem when I use another input module.
> > For example <module name="request" parameter="remoteAddr" type="all"/>
> > return a blank string.
> 
> This is old syntax. Please try
> 
>    <module name="request" type="all">
>       <parameter>remoteAddr</parameter>
>    </module>
> 
> HTH
> Chris
> 
> > And how can I specify the context with the session-context input module.
Or
> > in another word how can I get the ID in the authentication context
> > initialize by the authentication framework?
> > Any help will be greatly appreciated.
> > Laurent Trillaud
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> 


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


RE: [mod-db] Pb with input module

Posted by Laurent Trillaud <lt...@jouve.fr>.
Jean tu cherches quoi exactement ?

 

Car pour la date, cela devrait être

        <mode name="date" type="all">
         <parameter>date</parameter>
        </mode >    

pour l’adresse IP

        <mode name="request" type="all">
         <parameter>remoteAddr</parameter>
        </mode >    
pour l’URI

        <mode name="request" type="all">
         <parameter>RequestURI</parameter>
        </mode >

là ou cela se complique, c’est pour le contexte de session car il faut un
parameter en plus, essaye pour le login

        <mode name="session-context" type="all">
         <parameter>authentication/authentication/ID</parameter>
        </mode >

pour le role

        <mode name="session-context" type="all">
         <parameter>authentication/authentication/role</parameter>
        </mode >

    
Laurent



  _____  

De : Jean Farenc wanadoo recevoir [mailto:farencadakar@wanadoo.fr] 
Envoyé : lundi 5 janvier 2004 11:23
À : Christian Haul; users@cocoon.apache.org
Objet : Re: [mod-db] Pb with input module

 

Hi Chris:

 

    First I wish you an Happy New Year.

    I  work on the same project of  Laurent Trillaud.

    Thanks for your response for Modular Database Action it helps me a lot.

 

    But the syntax you gave seems not the good

    <value name="xxxx" type="string">
        <module name="request" type="all">
         <parameter>remoteAddr</parameter>
        </module >    
     </value>

    doesn't work

    But this one

    <value name="xxxx" type="string">
        <mode name="request" type="all">
         <parameter>remoteAddr</parameter>
        </mode >    
     </value>

    Works.

 

    Where I can found the parameters list for this input module.

 

    Thanks.

 

----- Original Message ----- 

From: "Christian Haul" < <ma...@informatik.tu-darmstadt.de>
haul@informatik.tu-darmstadt.de>

To: < <ma...@cocoon.apache.org> users@cocoon.apache.org>; <
<ma...@wanadoo.fr> farencadakar@wanadoo.fr>

Sent: Sunday, January 04, 2004 4:22 PM

Subject: Re: [mod-db] Pb with input module

 

> Laurent Trillaud wrote:
> > Hello
> > I want to override the default request-param input module in the
> > database.xml by another input module.
> > For example, if I change name filed in the database.xml provided in
> > /samples/databases/mod-db/ to this snippet 
> > <table name="user" alias="user">
> > <keys>...<keys>
> > <values>
> >    <value name="name" type="string">
> >       <module name="date" parameter="date" type="all"/>
> >    <value>
> >    ...
> > </values>
> > </table>
> > 
> > I got the current date instead of the name given in the query string.
All is
> > fine.
> > But I got a problem when I use another input module.
> > For example <module name="request" parameter="remoteAddr" type="all"/>
> > return a blank string.
> 
> This is old syntax. Please try
> 
>    <module name="request" type="all">
>       <parameter>remoteAddr</parameter>
>    </module>
> 
> HTH
> Chris
> 
> > And how can I specify the context with the session-context input module.
Or
> > in another word how can I get the ID in the authentication context
> > initialize by the authentication framework?
> > Any help will be greatly appreciated.
> > Laurent Trillaud
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:  <ma...@cocoon.apache.org>
users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail:  <ma...@cocoon.apache.org>
users-help@cocoon.apache.org
> 


Re: [mod-db] Pb with input module

Posted by Jean Farenc wanadoo recevoir <fa...@wanadoo.fr>.
Hi Chris:

    First I wish you an Happy New Year.
    I  work on the same project of  Laurent Trillaud.
    Thanks for your response for Modular Database Action it helps me a lot.

    But the syntax you gave seems not the good
    <value name="xxxx" type="string">
        <module name="request" type="all">
         <parameter>remoteAddr</parameter>
        </module >    
     </value>
    doesn't work
    But this one
    <value name="xxxx" type="string">
        <mode name="request" type="all">
         <parameter>remoteAddr</parameter>
        </mode >    
     </value>
    Works.

    Where I can found the parameters list for this input module.

    Thanks.

----- Original Message ----- 
From: "Christian Haul" <ha...@informatik.tu-darmstadt.de>
To: <us...@cocoon.apache.org>; <fa...@wanadoo.fr>
Sent: Sunday, January 04, 2004 4:22 PM
Subject: Re: [mod-db] Pb with input module


> Laurent Trillaud wrote:
> > Hello
> > I want to override the default request-param input module in the
> > database.xml by another input module.
> > For example, if I change name filed in the database.xml provided in
> > /samples/databases/mod-db/ to this snippet 
> > <table name="user" alias="user">
> > <keys>...<keys>
> > <values>
> >    <value name="name" type="string">
> >       <module name="date" parameter="date" type="all"/>
> >    <value>
> >    ...
> > </values>
> > </table>
> > 
> > I got the current date instead of the name given in the query string. All is
> > fine.
> > But I got a problem when I use another input module.
> > For example <module name="request" parameter="remoteAddr" type="all"/>
> > return a blank string.
> 
> This is old syntax. Please try
> 
>    <module name="request" type="all">
>       <parameter>remoteAddr</parameter>
>    </module>
> 
> HTH
> Chris
> 
> > And how can I specify the context with the session-context input module. Or
> > in another word how can I get the ID in the authentication context
> > initialize by the authentication framework?
> > Any help will be greatly appreciated.
> > Laurent Trillaud
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
>