Hi,
You should do something like this,
For the link that will generate the PDF
<a href="/generatePDF.do?someparams" target="workareaframe">Generate
Report</a>
For the Action/Servlet that generates set the content disposotion to "inline"
to get an inline PDF (in the browser itself and not as attachment)
response.setHeader("Content-Disposition", "inline; filename=" + filename);
If still it doesn't work, it may be problem with the browser , try changing the
browser.
See also (for content disposition help)
http://www.onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html
Thanks and Regards,
Thomas Joseph
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin, Kerala -
682015 | India
www.kottsoftware.com
--------------------------------------------------------------------------------
This email (including any attachments) is subject to copyright, the information
in it is confidential, and it is legally privileged. Use of this email or of
any information in it other than by the addressee is unauthorized and unlawful.
If you are not the intended recipient of the mail, kindly notify the author of
the mail and delete the same.
--------------------------------------------------------------------------------
It doesn't matter how you were, but rather how you are that decides your
future. A right attitude will get you to Success.
----- Original Message -----
From: Meenakshi Singh
To: 'Thomas Joseph'
Sent: Wednesday, September 13, 2006 3:03 PM
Subject: RE: OT(Open pdf in a frame on a web page)
Hi,
We have a requirement wherein we have to open the report in pdf on click of a
menu option. From the menu option we r invoking the servlet which is generating
the pdf output. Now, on our web page we have a top frame, a side frame & a
workarea frame. When I say text is inline in the response then it opens another
browser window & opens the pdf in that. What we want is that the pdf report
should open in the workarea frame.
Would u suggest something regarding this?
Thanks & Regards,
MS
-----Original Message-----
From: Thomas Joseph [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 13, 2006 2:17 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: OT(Open pdf in a frame on a web page)
What is preventing you from doing so? Could you please explain more?
Thanks and Regards,
Thomas Joseph
Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin, Kerala -
682015 | India
www.kottsoftware.com
----------------------------------------------------------------------------
This email (including any attachments) is subject to copyright, the
information in it is confidential, and it is legally privileged. Use of this
email or of any information in it other than by the addressee is unauthorized
and unlawful. If you are not the intended recipient of the mail, kindly notify
the author of the mail and delete the same.
----------------------------------------------------------------------------
It doesn't matter how you were, but rather how you are that decides your
future. A right attitude will get you to Success.
----- Original Message -----
From: Meenakshi Singh
To: Struts Users Mailing List (E-mail)
Sent: Wednesday, September 13, 2006 12:32 PM
Subject: OT(Open pdf in a frame on a web page)
Hi all,
We are wanting to open a PDF file in the same frame
within our existing web page.Surely there MUST be a way to do this.
Can anybody suggest a way out of this problem.
Thanks & Regards,
MS
"The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any
virus/trojan/worms/malicious code transmitted by this email.
www.mind-infotech.com "
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
"The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus/trojan/worms/malicious
code transmitted by this email.
www.mind-infotech.com "