This content has been marked as final.
Show 1 reply
-
1. Re: Redirect after sending email
oneworld95 Jun 15, 2009 6:50 PM (in response to oneworld95)I think the answer is this:
public String sendEmail() { String redirect = "/done.xhtml"; try { renderer.render("/mail.xhtml"); message = "Email sent successfully."; return redirect; } catch (javax.faces.FacesException e) { message = "An error occurred while sending the email: " + e.getMessage(); return redirect; } }
Sorry for the stupid question :)