wood burning stoves*
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
Author

Fileuploads worddocument and xls

nagisetty srinivasarao
Greenhorn

Joined: May 29, 2008
Posts: 2
hi,

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 map.xml..in once it goes to actionflowmap.xml file it takes the perperaction class in that

jsp

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 ?


http://www.skillassert.com


Ben Souther
Sheriff

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.
See:
http://faq.javaranch.com/java/FileUpload


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

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 DownloadAction.so 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.
 
wood burning stoves
 
subject: Fileuploads worddocument and xls
 
Similar Threads
Help in Multipart Request Urgent
Uploading Excel spreadsheet into JSP
Problem in Uploading files other than text files
Is there any way to do check how many files the user have uploaded?
Could not find a Content-Type for upload in struts2