Open a PDF or Word doc using a Struts Action without losing the page?

S

sygsix

Hello everyone.

I have been calling a struts action in a normal HTML form like this:

<form name="SeeDocumentForm" method="post" action='<html:rewrite
href="SeeDocument.do" />' target="_new" method="post" >

To be honest, I had forgotten *why* I used "target='_new'" -- why, that
is, I opened a new explorer window when all I really want to do is
launch either Word or Acrobat to see the file.

Then I remembered -- everything works ok in Firefox but in IE it
launches Word / Acrobat but I lose the page I was viewing. I imagine
that this is because the Action I am using has no "forward". This is by
design; there is no need for a forward because I am simply launching an
external app (Word, Acrobat) and spitting out some data, no reason to
navigate to another page.

But IE doesn't like it. And it doesn't matter if I change the POST to
GET or if I call the struts Action directly in a URL:

<a href='<html:rewrite href="SeeDocument.do" />id=1'>View</a>

.... same deal. It launches the external app but the page goes blank.

Anyway ideas?

Thanks in advance,
syg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top