Goetzmann Bertrand wrote:
After having a look to the source code, yes you're right ! When an exception occurs, the sendmail action returns null to the sitemap. But, I can see this in the source code : finally{ ObjectModelHelper.getRequest(objectModel).setAttribute(Sendmail.REQUEST_ATTRIBUTE,status); } I guess it is possible to get the status not using what's returned by the action but using what the action sets in the request with the input module request: {request:attributes/org.apache.cocoon.acting.Sendmail/status} for the status and {request:attributes/org.apache.cocoon.acting.Sendmail/status} for the message. This is really a strange behaviour ! -- Philippe GASSMANN |