Hello Kenny, Your "subject" is your clue to the answer. An Action is called. If you not already did so, please read the Cocoon docs about Actions.
In the employee example (/docs/samples/forms/employee.xsp), an Action is called by supplying a request parameter "<input type="submit" name="cocoon-action-Add" value="click here to add"/>", which, in combination with the definitions in the site map, calls the Java class DatabaseAddAction.java in "\xml-cocoon2\src\java\org\apache\cocoon\acting". In this class the method "getAddQuery" builds the insert string you are looking for. The path "\xml-cocoon2" points to the place where I installed the Cocoon sources. If you don't have the Cocoon sources (thus, binaries only), you must rely on the documentation of these Actions (...). Hugo Burm [EMAIL PROTECTED] -----Original Message----- From: Kenny Chow [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 9:15 AM To: [EMAIL PROTECTED] Subject: DatabaseAddAction I've read the tutorial but didn't see any "insert" statement in the descriptor nor in the sitemap. The descriptor file only maps parameter names to table columns. So I am wondering how the insert was done. Would someone point me to some related resources or give a hint to mastering this action? --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>