File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Fileuploads worddocument and xls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Fileuploads worddocument and xls" Watch "Fileuploads worddocument and xls" New topic

Fileuploads worddocument and xls

nagisetty srinivasarao

Joined: May 29, 2008
Posts: 2

i am not able to upload the file. i am using the enctype="multipart/form-data" in the form tag, whenever i give that attribute, it is not take the proper action class. suppose i removing that attribute it takes the proper action class. pls help me. i do this requirement last 10 days. but i am not able done this. the files are stored in the server side.. i am using the weblogic server.
when ever i am using enctype, it is not going to actionflow once it goes to actionflowmap.xml file it takes the perperaction class in that


Action class

Pls help me... this requirement is soon to submit.
[ May 31, 2008: Message edited by: nagisetty srinivasarao ]
karthikeyan Chockalingam
Ranch Hand

Joined: Sep 06, 2003
Posts: 259
Please close the body and html tags.

why is

present in JSP ?

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is a little (lot) more to uploading a file than just writing the input stream to disk. These days, most everyone uses a library for this.
We have links to the most popular ones in our Servlet FAQ.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Sun Prakash

Joined: Aug 25, 2008
Posts: 1
File Download like excelsheet is not available in struts 1.1.It was available from struts 1.2.6 which is better to use servlet for downloading file.i.e first write Excel sheet to disk and then retrieve from the specified location using ServletOutput Stream.
I agree. Here's the link:
subject: Fileuploads worddocument and xls
It's not a secret anymore!