File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "inputting file path to java servlets" Watch "inputting file path to java servlets" New topic
Author

inputting file path to java servlets

Ron Isac
Greenhorn

Joined: Dec 22, 2004
Posts: 9
Hi,
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.

Regards,
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
Sheriff

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: inputting file path to java servlets
 
Similar Threads
Problem in reading csv file
iText: Digital signature
creating .class file in Tomcat
information regarding the import...
how to include js and css file in eclipse