cancel
Showing results for 
Search instead for 
Did you mean: 

Display File residing on WAS

Former Member
0 Kudos

Hi there,

I want to access the file residing on the local drive of WAS from my WebDynpro application i.e. I want to access files residing on C:\ of the machine where WAS is installed.

I also want to display that file into another window.

I am getting some access error.

How do i resolve this?

Please help me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Darshil,

- what is the file type you want to access and display?

- how did you try to access it?

- what was the error you got?

And just for completeness:

- does the path contain blanks?

in general, it is possible to access your file system, so

let's see...

greetings Walter

Former Member
0 Kudos

Hi,

Can you explain as to what is the acess problem that you face?

Since your web dynpro application runs in the server you should not face any problme accessing the file as C: points to the C drive of your server.

If the file is some kind of a Word or excel file you can display it with the help of Office Control. If all you want to do is to download the file you can use the download element.

Kindly do reply.

Regards

Noufal

Former Member
0 Kudos

Hi Walter,

Thanks for coming to rescue.

I resolved the problem by myself (may be i got the workaround):-).

I wanted to access .doc and .xls files.

I wanted to display that in the browser.

Let me share the solution with you:

I created a folder in WAS internal folders, which are directly accessible by the application running on WAS.

and I dumped the files there so i can access those files.

Thanks anyways.

Former Member
0 Kudos

Hey there,

There are some files residing on the machine where WAS is running.

I wanted to display those files in a browser on client side.

but I got 'Access denied' Error while doing that.

Hope I am able to make myself clear.

Regards,

Darshil

Answers (4)

Answers (4)

Former Member
0 Kudos

Can you please copy the those files under the path i have specified above and try !!

Regards, VIP

Former Member
0 Kudos

Hi VIP,

I told you that I have done that only.

and It is working.

Thanks

Former Member
0 Kudos

Hi,

Please create a foler under "C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sap.engine.docs.examples\servlet_jsp\_default\root"

Ex: create folder "MyFolder" under the above path and place the excel MyExcel in the "MyFolder"

You can access that file by

http://<<hostname>>:portName/Myfolder/Myexcel.xls

Regards,VIP

Former Member
0 Kudos

Hi VIP,

Ya that's exactly what i've done.

Thanks,

Darshil

Former Member
0 Kudos

Hi Darshil,

Instead of cerating the files to the default directory, you can create a folder as "Darshil" in "C:\" and you can create HTTP alias in the visual adminstrator.

You can access the file using

http://<<hostname>>:portName/Darshil/Darshilexcel.xls

1. Create the XLS file (eg. Darshilexcel.xls) to some location in the server (eg: c:\Darshil)

2. Create a HTTP alias(eg. Darshil) in the Visual Adminsitrator pointing to the file location (eg: c:\Darshil).

3. Set the linkToURL reference property to http://<<servername>>:50000/Darshil/<<XLS file name>>

For creating the HTTP alias refer to the blog "Creating an HTTP Alias in WAS"

/people/renjith.andrews/blog/2005/03/31/creating-an-http-alias-in-was

Regards,

Santhosh.C

Former Member
0 Kudos

Hi,

Probably you can create HTTP alias and display the file in the browser.

Refer the thread

Regards,

Santhosh.C

Former Member
0 Kudos

Hi,

It will easy if you can access that file thourgh HTTP.

Please see the following

Regards,VIP

Former Member
0 Kudos

Hi VIP,

Thanks for the help.

Sorry for replying late.

I resolved the problem by myself (may be i got the workaround):-).

Actually i dint want to use IIS so i got the alternative to that.

Let me share the solution with you:

I created a folder in WAS internal folders, which are directly accessible by the application running on WAS.

and I dumped the files there so i can access those files.

Thanks.