--- On Fri, 12/5/08, Raghu wrote: > I am trying to implement Ajax File Upload using > JQuery's Form Plugin which uses iframe internally. JQuery's Form Plugin doc says it support response > type of HTML or XML. > > Without Ajax, my file upload works fine. I am not sure what > result type to choose for ajax response. > > If I use type="stream" then I am getting below > exception... Any idea how to resolve this issue... > [...] > > [WRITE4SMILE] ERROR [2008/12/05 09:53:59] | > Servlet.service() for servlet default threw exception > java.lang.IllegalArgumentException: Can not find a > java.io.InputStream with the name [inputStream] in > the invocation stack. Check the <param name="inputName"> > tag specified for this action.
Surprisingly, the steps for solving this particular issue are described completely in the exception message: if you're going to use a stream result you need to supply and input stream in your action, the property name of said stream being supplied by the "inputName" param. The contents of that stream would be decided by whatever jQuery's form plugin wants--which I don't know. It sounds like you'd need to craft a response containing whatever information the form plugin wants; if you can qualify those requirements it'll be easier to help. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]