This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion 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
I agree. Here's the link:
subject: inputting file path to java servlets
It's not a secret anymore!