Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fileuploads worddocument and xls

 
nagisetty srinivasarao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 259
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please close the body and html tags.

why is



present in JSP ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sun Prakash
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic