cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Brunner>
Subject Accessing DatabaseAddAction result
Date Tue, 10 Dec 2002 16:05:24 GMT

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:generate .../>

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 <>
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message