On 10.Dec.2002 -- 05:05 PM, Matthias Brunner wrote: > Hello, > > is there any way to find out whether a DatabaseAddAction was > successful / display the error message? > > I would like to do the following: > <map:match ...> > > <map:action-set name="mydb"> > <map:parameter .../> > </map:action> > > <map:generate .../> > ... > ... > </map:match> > > I do not want to have to different input sources dependent on whether > the action was successful. Actually, I just want the same form to be > reloaded and to display "record added" (or an error message on top > of the page). > I see in the source that DatabaseUpdateAction sets a request > attribute "rows" to indicate how many rows where updated. > Why does DatebaseAddAction not set something like two request > attributes "success" and "errorMessage"?
At least the one from the modular package does set the error message as request attribute. > Or is this not the cocoon way of doing it? How is this realised > without having to rely on xsp? (AFAIK, it is also possible to access > request attributes in xsl) Like you say it is possible to access request attributes from xslt. Thus you do not need XSP. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>