missfeminem
Programmer
Hi all, I'm new to the site and new to struts. I have tried to use a simple piece of code to open a pdf in a new window. The new window opens fine but there is a problem finding the path to the pdf. Now before you say "check your path" the path I'm using is correct as I have tried loading images in the new window and they work fine. And I tried opening a url in the new window and that worked fine too, so I'm wondering what's wrong with the pdf. Is there some problem with opening a pdf using struts? (Also I opended the pdf using html alone so the pdf is not corrupted or anything like that)
My code is:
<html:submit onclick="window.ope('/pdf/Nondisclosure.pdf')">
<bean:message bundle="layout" key="button.nonDisclosure"/>
</html:submit>
Thanks in advance guys
My code is:
<html:submit onclick="window.ope('/pdf/Nondisclosure.pdf')">
<bean:message bundle="layout" key="button.nonDisclosure"/>
</html:submit>
Thanks in advance guys