File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes inputting file path to java servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "inputting file path to java servlets" Watch "inputting file path to java servlets" New topic

inputting file path to java servlets

Ron Isac

Joined: Dec 22, 2004
Posts: 9
How can I input an excel file into the java servlet program? I am using POI HSSF programming.I have created a form that will accept the path from the user and in the servlet program, I have called a post method to retrieve the path of the file. I am getting the path of the file as a string.Then I have to access the file to read the data. But it is not working. What should I do?.Please help me.

Ron Isac
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
What are you getting??

Tip: Better write your file reading/writing code outside your servlet.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Are you trying to upload the file from a client or just point to a file that already exists on the server?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
jQuery in Action, 3rd edition
subject: inputting file path to java servlets
It's not a secret anymore!