Hi Sonny,
I don't know that the action isn't relevant, since the redirect to showTestFailedPage should only happen if the action failed. Why the action fails using internal redirects and succeeds using HTTP redirects is mysterious.
The action could fail by throwing an unexpected exception, or by returning null, or if it's an XSPAction by setting <action:set-failure/>. There ought to be something in your sitemap.log showing what happened.
John
Sonny Sukumar wrote:
--
Hey John,
The test the action is performing is actually to see whether an email verification string is the same as what's in the backend database. In other words, somebody clicks a link in her email to complete registration by verifying her email address and this action checks the random string in in the link (a request param) against what's in the db. That's all. :-)
But again the weird thing is that it works when I use HTTP redirects, so doesn't that make the action moot to discuss? The action code is actually pretty simple and hasn't been changed in a long time, so it *seems* like that wouldn't be the problem.
Btw, when you mentioned the action possibly failing, did you mean the test it performs failing or did you mean some type of Exception being thrown from it?
<map:match pattern="secure/doTest"> <map:act type="perform-test"> <!-- Test succeeded. --> <map:redirect-to uri="cocoon:/showTestSucceededPage"/> </map:act>
<!-- Test failed. --> <map:redirect-to uri="cocoon:/showTestFailedPage"/> </map:match>
---------------------------------------------------------
Jentro Technologies GmbH
John L. Webber, Software Development
---------------------------------------------------------
Rosenheimer Str. 145e 81671 München
Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED]
Fax +49 89 189 169 99 http://www.jentro.com
---------------------------------------------------------
NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you.
---------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
