|
From: Tony G. <tgi...@gm...> - 2009-12-04 16:46:59
|
I have a form on a web page,
<form action="http://localhost:8080/testApp/services/putdata/fileup"
method="POST" enctype="multipart/form-data">
<table>
<tr>
<td colspan="2">Hello world</td>
</tr>
<tr>
<td>Name : </td>
<td><input type="TEXT" name="firstName" >
</tr>
<tr>
<td>Language :</td>
<td> <select name="pickOption">
<option>option 1</option>
<option>option 2</option>
</select>
</td>
</tr>
<tr>
<td>Select file</td>
<td> <input name="uploadFile" type="file"> </td>
</tr>
<tr>
<td colspan="2"> <input type="submit" value="Say it!" />
</tr>
</table>
</form>
I use the following code to try and process it.
@POST
@Path("/fileup")
@Consumes("multipart/form-data")
public String post2(MultipartFormDataInput input)
{
return "Got a form to process";
}
And this is the message I'm getting:
java.lang.NoSuchFieldError: TEXT_PLAIN_WITH_CHARSET_US_ASCII_TYPE
org.jboss.resteasy.plugins.providers.multipart.MultipartInputImpl.<init>(MultipartInputImpl.java:48)
org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInputImpl.<init>(MultipartFormDataInputImpl.java:29)
Any pointers on where I'm going wrong???
Tony Giaccone
|