Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening a pdf in a new window when a button is clicked

Status
Not open for further replies.

missfeminem

Programmer
Feb 12, 2008
1
IE
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 :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top