Tuesday, April 29, 2008

Struts2 File Download Problem

File download has been explained pretty clearly in Struts2 documentation site. I exactly followed the steps given. But I was not able to download a file. Though I didn't get any error, nothing was happening either. I wasted an entire day trying to figure out what the problem was with my code, and then I found out that I was using 'ajax' theme for the submit button that was supposed to submit download request. When I removed it, it started working perfectly fine.

do not use
theme='ajax' in <s:submit /> or <s:a/>.

No comments: