cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo Rivera <agalla...@agsoftware.dnsalias.com>
Subject Re: dbAdd Action help.
Date Tue, 08 Oct 2002 10:50:14 GMT
El Martes, 08 de Octubre de 2002 04:33, Christian Haul escribió:
> On 08.Oct.2002 -- 02:49 AM, Antonio Gallardo Rivera wrote:
> > El Martes, 08 de Octubre de 2002 01:09, Christian Haul escribió:
> > > On 07.Oct.2002 -- 11:32 PM, Antonio Gallardo Rivera wrote:
> >
> > The problem is into the dbAddAction, because if I put the cli_id into the
> > descriptor as part of the <values> of the table the action raise me an
> > error that said that cli_id cannot be null. For example:
>
> This error message is generated by the DBMS. The database actions do
> not care.
>
> Hence it follows that a null value is passed to the DBMS, thus there
> is a problem obtaining the value.
>
> > > I assume you are running a recent CVS snapshot?
> >
> > Yes. I am using the lastest CVS.
> >
> > > If so, please note that the name of some modules have been changed and
> > > that the compiled in default is rendered useless. There should be a
> > > warning in your logs indicating this. Please add a
> > > <output>request-attr</output> and <input>request-param</input>
at the
> > > action declaration to restore the old behaviour.
> >
> > Please explain me more about that.
>
> 	  <map:action name="vq-dbadd"
> src="org.apache.cocoon.acting.modular.DatabaseAddAction">
> <descriptor>resources/database.xml</descriptor>
> 		<throw-exception>false</throw-exception>
> 		<input>request-param</input>
> 		<output>request-attr</output>
> 	  </map:action>
>
> > I saw a similar approach in some Java generator to improve performance of
> > the parameters. Is this similar approach that are you doing here? I will
> > be glad of that :).
>
> Don't think so.

Check www.genexus.com. I got a curse of this bussiness app, multi-database 
generator and there when we was making some examples using the Java webapp 
generator, genexus provide the option to define the type of each 
request-param to improve the network performance. Here the types:

Type		Use
-----------------
default 	HTTP Server <-----> Client
input		HTTP Server <------ Client	
output	HTTP Server ------> Client	

Antonio Gallardo
>
> 	Chris.

---------------------------------------------------------------------
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