Question: is dismissal with prejudice a judgment on the merits?
Answer: Dismissal with prejudice is a final judgment and the case becomes res judicata on the claims that were or could have been brought in it; dismissal without prejudice is not.