aspose file tools*
The moose likes Testing and the fly likes HTTPUNIT Webform.submit of file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "HTTPUNIT Webform.submit of file." Watch "HTTPUNIT Webform.submit of file." New topic
Author

HTTPUNIT Webform.submit of file.

peter cooke
Ranch Hand

Joined: Mar 16, 2004
Posts: 317
I think I know the answer to this but hoping my understanding is incorrect.

I have a webform with


I browse to the file select it and submit it to the servlet.

the response from the contains is valid xml that includes a proprietary multi verison filesystem path (every version of the file is stored and retained forever and can see ver1 ver2 .... ver n) where the file was uploaded to. It is not a standard url or uri or file system path.




When I call submit on the form, I get " <error message="Bad file descriptor" type="java.io.IOException">java.io.IOException: Bad file descriptor....."

stack trace


I think submit sees the file tag and tries to build a java.util.File object with the contents of the file element.
is that correct?


CIAO Peter M. Cooke
 
wood burning stoves
 
subject: HTTPUNIT Webform.submit of file.