This is horrible, and I hope you cope with the situation appropriately. I firmly disagree with XR-7, and believe that rather than forgetting about this (which is something which you should not do), that you should use your dad as a life example. If he has treated you well, that's the only thing which matters. You can still love him, and you can still like him.
While it is a shame what happened to your father and the fact that he's a repeat offender, this should remind you that the choices you make in life always make a profound difference -- whether they're positive or negative. One stupid choice is one strike, and one strike can be it for you. I would not take his history with a grain of salt. Instead use it to better yourself, and realize that by making the right choices early in life - you can do anything, be anything, and be better than everyone else.
Four pieces of advice: Don't be stupid and follow the same things your dad did. Don't do anything that could interfere with your ability to be productive (such as abusing substances). Don't be a follower; be a leader. Don't involve yourself with those who encourage you to take part in bad things.
Best of luck, and just know that despite your dad being imprisoned again -- this is not an ending for you. It can be a beginning and get you on a path to success.