The buweb site must be changed into a Web 2.0 style website. So, I found out the RESTful file upload example, Multiple file upload using RESTful web service (Jersey) , and used EXt Js file upload to build my client upload page.
But must care some details, like "missing } in XML expression" on FireFox. If server side use "Content-type:text/plain", the respone JSON will add <pre><pre> tags on FireFox, so change to "text/html".
Second, the Ext Js file upload example doesn't have submit failure responses, like client invalid, server invalid, connect failure and load failure. The formsubmit-example has complete example code.
Then, usually need to do field validation, use vtype to check file extension format. Ex: ExtJS中表单验证使用自定义vtype示例.

