you said: want to be able to submit this page to a servlet to get the forms values, at the same time as this I want to open a new window to display another page
I think it depends on what you mean by 'at the same time'. Is after form processing good enough?
So when the response page appears from the form submission, your second window could pop open.
That's one option.
Run away! Run away! Here, take this tiny ad with you:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database