Failure and rejection isn't a bad thing, and should not be shunned upon.
One gets better at dealing with it the more it happens to them.
To deal with it, I recommend:
- Talking to others. It'll make you feel better.
- Redefine your idea of 'success' into smaller, more manageable goals. The easier you are able to reach your goals, the more confident you'll feel and you'll deal with failure better.
- Understand that this is part of life.