Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Uploading Using AppletFile  RSS feed

 
Salman Yasser
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 ?
 
Paul Stevens
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!