Re: Struts2 Ajax File Upload

2008-12-05 Thread Raghu
Please don't reply to this mail. I have solved issue and it work the way I expect. It is surprising that in case of file upload JQuery's Form Plugin is not picking form's action attribute value and request was not reaching to my action class. When I explicitly pass url's value to ajaxForm("options"

Re: Struts2 Ajax File Upload

2008-12-05 Thread Raghu
Thanks Dave for prompt reply. Yes, I have defined inputStream property in action class like below. *private InputStream inputStream; public InputStream getInputStream() { return inputStream; } public void setInputStream(InputStream inputStream) { this.inputStream = inputS

Re: Struts2 Ajax File Upload

2008-12-05 Thread Dave Newton
--- 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 choos

Struts2 Ajax File Upload

2008-12-05 Thread Raghu
Hi, 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"