on 02-09-2009 1:22 PM
Hi,
I would like to display a pdf file in my Java Web Dynpro application. I am using an iFrame element.
The code I used is:
// test if the file exists
if( path != null)
path = "D:\\Echanges\\Facture\\" + path + ".pdf";
if (isFile(path)) // test if the file exist
wdContext.currentContextElement().setPath(path); // we set the path of the file for the iFrame url
else
wdContext.currentContextElement().setPath("D:\\Echanges\\errorDocAccess.htm"); // here we set the path of an error file to display in the iFrame
In the context, path is declared as a String variable and mapped to an iFrame. What happen when I lauch the program is the followig error:
com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/Echanges/errorDocAccess.htm
I have checked the path of the error file and it is valid. How do I get to display my file ? The path is on the same server as the portal.
Thanks a lot for your help.
Thibault Schalck
Not solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.