Update of
/var/cvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
In directory
james.mmbase.org:/tmp/cvs-serv25924/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
Modified Files:
Tag: b1_4
ResponseFormPortlet.java
Log Message:
CMSC-1025 Dynamic form gives an error when submitting the form.
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform
See also: http://www.mmbase.org/jira/browse/CMSC-1025
Index: ResponseFormPortlet.java
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Portlets/portlets-dynamicforms/src/java/com/finalist/portlets/responseform/ResponseFormPortlet.java,v
retrieving revision 1.8.2.6
retrieving revision 1.8.2.7
diff -u -b -r1.8.2.6 -r1.8.2.7
--- ResponseFormPortlet.java 14 Jul 2008 11:45:10 -0000 1.8.2.6
+++ ResponseFormPortlet.java 6 Oct 2008 14:23:28 -0000 1.8.2.7
@@ -258,17 +258,23 @@
sent = true;
}
catch (UnsupportedEncodingException e) {
+ getLogger().error("error in mail data: userEmailText = '" +
userEmailText +"' " +
+ " userEmailSenderName = '" + userEmailSenderName +"' " +
+ " userEmailAddress = '" + userEmailAddress +"' " +
+ " userEmailSenderAddress = '" + userEmailSenderAddress
+"' ");
getLogger().error("error sending email", e);
}
catch (MessagingException e) {
- getLogger().error("error sending email", e);
- }
- }
- else {
getLogger().error("error in mail data: userEmailText = '" +
userEmailText +"' " +
" userEmailSenderName = '" + userEmailSenderName +"' " +
" userEmailAddress = '" + userEmailAddress +"' " +
" userEmailSenderAddress = '" + userEmailSenderAddress
+"' ");
+ getLogger().error("error sending email", e);
+ }
+ }
+ else {
+ // no need to send, but there is need to tell it was a success
+ sent = true;
}
return sent;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs