You need this HTML:
<input type="button" value="Back" onClick="parent.location='mypage';">
Wrap that in an out.println(). An easy way to make sure it's not cached is to include the system time in the request:
out.println("<... onClick=\"parent.location='mypage?time="+System.currentTimeMillis()+"';\">");