cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean Farenc wanadoo recevoir" <farencada...@wanadoo.fr>
Subject Re: [mod-db] Pb with input module
Date Mon, 05 Jan 2004 10:23:12 GMT
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" <haul@informatik.tu-darmstadt.de>
To: <users@cocoon.apache.org>; <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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> 
Mime
View raw message