cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: Problem with modular database actions from CVS
Date Mon, 07 Oct 2002 07:52:16 GMT
On 06.Oct.2002 -- 01:52 PM, Hugo Burm wrote:
> Hello,
> 
> I am using the modular database actions and doing a simple select action on
> a table.
> With the CVS version of about a week ago, this worked ok, and the results
> were stored in the request attributes by the default output module.
> With the CVS from Oct 5, I get a warn message : "Could not select output
> mode attribute:null" and the values that are fetched from the database are
> not stored in the request atttributes. From the log files I can see that the
> key is set correctly and the results are fetched correctly from the
> database. Storing them in the request attributes seems to be the problem. Is
> this broken or do I now have to specify an output module myself?

Indeed. The actions default to "attributes" which was the short name
for the request attributes output module. That has been recently
renamed request-attr. Please add
<output>request-attr</output>
to the action's declaration in sitemap. E.g.

	  <map:action name="my-dbadd" src="org.apache.cocoon.acting.modular.DatabaseAddAction">
		<descriptor>resources/database.xml</descriptor>
		<throw-exception>false</throw-exception>
        <output>request-attr</output>
	  </map:action>

Sorry for the inconvenience.

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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