Curious as to why you would go to all that trouble when all you need to do to create a popup is something like this:
<a href="#null"
onclick="newWindow('<s:url action="whateverAction" namespace="/popup" /> ','popup','800','400','resizable,scrollbars')">
Click here for popup</a></td>