What To Do When Your Creative Best Gets Rejected

At some point, it happens to everyone who makes something public. Your work gets rejected, sometimes with pejoratives and sometimes with kind words that kill. How do you react well and maintain your creative energy in the face of such negativity?