This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!