Access Local File Using Iframe Iframe with local file is not getting displayed in the jsp page. in Programming Posted March 23, 2010 · Report reply Hi all,I am using Iframe in the jsp page to display the local file in the file systemI am using following tag to display the file in the jsp page. <iframe src=file:///c:/modify.html width="40" height="80"> It displays modify.html file properly in the IE browser , but its not showing in the Firefox browser.In Firefox , the following error is getting displayed . Security Error: Content at LOCALHOST:8080/Struts2Example6/ may not load or link to file:///C:modify.htm.After googling, I found that I need add one users.js file in the following locationC:\Documents ndSettings\Rasheed\ApplicationData\Mozilla\Firefox\Profiles\9wapkhj3.defaultThe content of users.js is as follows:user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");user_pref("capability.policy.localfilelinks.sites","http://localhost:8080/Struts2Example6") user_pref("capability.policy.policynames", "localfilelinks");Even then, its not showing the it in the Firefox browser.Please help me to fix this.Thanks
Access Local File Using Iframe Iframe with local file is not getting displayed in the jsp page.
in Programming
Posted · Report reply
Hi all,
I am using Iframe in the jsp page to display the local file in the file system
I am using following tag to display the file in the jsp page.
After googling, I found that I need add one users.js file in the following locationIt displays modify.html file properly in the IE browser , but its not showing in the Firefox browser.
In Firefox , the following error is getting displayed .
The content of users.js is as follows:
Even then, its not showing the it in the Firefox browser.
Please help me to fix this.
Thanks