The original thread for this is: http://marc.theaimsgroup.com/?t=107488892100004&r=1&w=2
In a nutshell.. I'm using the authentication framework (now with Cocoon 2.1.4) and I'm still having this multiple insert problem. Here is the sitemap snippet... <map:match pattern="performLogin.html"> <map:act type="auth-loggedIn"> <map:parameter name="handler" value="authhandler"/> <map:redirect-to uri="main.html"/> </map:act> <map:act type="auth-login"> <map:parameter name="handler" value="authhandler"/> <map:parameter name="parameter_userid" value="{request-param:userid}"/> <map:parameter name="parameter_password" value="{request-param:password}"/> <map:generate type="serverpages" src="loginComplete.xsp"/> <map:transform src="styles/welcome.xsl" type="xslt"/> <map:transform src="styles/main.xsl"/> <map:serialize type="html"/> </map:act> <!-- authentication failed: --> <map:generate src="login.xml"/> <map:transform src="styles/main.xsl"> <map:parameter name="failure" value="true"/> </map:transform> <map:serialize type="html"/> </map:match> It appears as though loginComplete.xsp is being executed twice. I thought about switching it to use modular database actions.. but it seems by using those the data that gets inserted is mapped directly to request parameters correct? Well how would I handle things like "now()" in mysql (the insert is a login log.. everytime someone attempts to login I'm logging it.. but I get two logs entries for each login attempt). Or what about constant type values? (like a SUCCESS or FAILURE flag) Any help would be appreciated.. the site I'm working on is set to be open to production use by customers next month (its been in testing by the customer but no one has noticed the multiple logins in the log yet.. hehe). Thanks, - Brent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]