File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Access a File directly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Access a File directly" Watch "Access a File directly" New topic

Access a File directly

shweta bulbule
Ranch Hand

Joined: Mar 24, 2006
Posts: 30

I have many files in one place in my web application. Now i don't want to go thru servlet but directly want to access and download files (xml files)

is there any way i can do it ?? what if i want to identify the user somehow (with the help of web.xml).


Thanks,<br />Shweta
Ramesh Shanmugam
Ranch Hand

Joined: Sep 13, 2004
Posts: 132
There is one way to access the XML files in the webserver. Use can make use of AJAX and can give request to the particular file from where you will get a XML collection as a response.

Ramesh Shanmugam - SCJP 1.5
shweta bulbule
Ranch Hand

Joined: Mar 24, 2006
Posts: 30
Thanks, do you have any document related to this??
I agree. Here's the link:
subject: Access a File directly
It's not a secret anymore!