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.

<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 http://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 location
C:\Documents ndSettings\Rasheed\ApplicationData\Mozilla\Firefox\Profiles\9wapkhj3.default

The 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 and Regards,
Rasheed.