Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Uploading Using AppletFile  RSS feed

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When trying :
com.oreilly.servlet.MultipartRequest l_MultipartRequest = new MultipartRequest (p_Request,
l_flTempFloder.getCanonicalPath(),
p_nMaximumfileSize);
I got :
java.io.IOException: Corrupt form data: no leading boundary
The problem is that I used the AppletFile : FileUpload Applet at my JSP ( designed by InfoMentum ) which generates RFC-1867 Request
The following is the code at JSP :
<form name="uploadForm" action="/Upload/UploadServlet/Start" enctype="multipart/form-data" METHOD="POST">
<applet code="FileUpload.class" archive="FileUpload.jar" width="420" height="64" name="FileUpload" mayscript VIEWASTEXT id=Applet1>
<param name="cabbase" value="FileUpload.jar">
<param name="filter1" value="All files (*.*)">
<param name="file1" value="c:\yasser.txt">
<param name="noFileList" value="false">
<param name="bgColor" value="#000080">
<param name="directory" value="c:\">
</applet>
When using : <INPUT TYPE="FILE"> the MultipartRequest can be instantiated using the coming request
What is the Problem in he Case of the AppletFile ?
* you can download the AppletFile from http://www.infomentum.com/products/download.asp
and choose AppletFile 2.5 zip
 
Salman Yasser
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does AppletFile generates RFC-1867 standard Stream ?
Infomentum said that, Why it does not work in J2EE environment ?
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yasser,
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
Last warning.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!