Hi,

I am trying to use HttpUploadBean and HttpDownloadBean of the Oracle JSP Tag
Library ojsputil.jar in a Struts application, but no luck. Are there any
issues about using these beans with Struts Action Classes.
I am getting this error:

04/04/28 18:40:10 Corrupt form data: premature ending 

04/04/28 18:40:10 at
oracle.jsp.webutil.fileaccess.HttpUploadBean.upload(HttpUploadBean.java:70)

04/04/28 18:40:10 at
bookstore.testing.struts.action.UploadAction.execute(UploadAction.java:51)

04/04/28 18:40:10 at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:484)

My form is like this:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html:html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>File Upload | Example</title>
<link href="<html:rewrite page="/css/style.css"/>" rel="stylesheet"
type="text/css"/>
<html:base/>
</head>
<body>
<html:form action="upload.do" enctype="multipart/form-data" method="POST">
<br/>
<bean:message key="label.filename"/>:
<input type="FILE" name="file" size="20" maxlength="50"/> 
<!-- <html:file property="file" size="20" maxlength="40" /> -->
<br/>
<br/>
<html:submit>
<bean:message key="button.submit"/>
</html:submit>
<html:cancel>
<bean:message key="button.cancel"/>
</html:cancel>
</html:form>
</body>
</html:html>

Regards,

Irshad 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to