Link to home
Start Free TrialLog in
Avatar of kaka0
kaka0Flag for Hong Kong

asked on

Unable to display PDF in popup using Spring framework

Hi all,

I have problem to display my PDF file in an existing popup window using spring framework. The workflow is when I click a button from the main page, it popups a new window (child) and showing progress status. After the file finished generating, I set the view in controller and return to jsp. However, the PDF file displays (using DefaultResourceLoader and response.flushBuffer) in the main page instead of the popup window. I want to show in popup. Anything wrong? How can I specify which window the PDF should be displayed?

Please help. Thanks.
Avatar of Kyle Santos
Kyle Santos
Flag of United States of America image

Hi,

I am here to help you with your open question.  Do you still need help?  I have the ability to alert more experts if you still need help.

If you solved the problem on your own, would you please post the solution here in case others have the same problem?

If you need me to delete this question just say "Delete."

Thank you for using Experts Exchange.

Regards,

Kyle Santos
Customer Relations
Avatar of kaka0

ASKER

Please help.
Avatar of kaka0

ASKER

The problem is not resolved yet. May need more people to help.

Thanks
Avatar of HemanthaKumar
HemanthaKumar

Your question is pretty vague.
In Javascript you need to specify window target while opening window with open command. Check javascript reference on window.open
Avatar of kaka0

ASKER

Hi,

I can open the pdf but all the pages are blank. I did try your suggestiin. However, all the pages are still blank.

I am thinking will that relative to font typw missing in the server or strange characters in the ajax return data. The browser cannot reconize. Is that sound reasonable?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.