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"?
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)
Best regards!
--
Matthias Brunner <[EMAIL PROTECTED]>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
---------------------------------------------------------------------
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]>