<Link rel = "stylesheet" href = "ext-3.2.1/resources/css/ext-all.css"/> <script type = "text/javascript" language = "javascript" src = "ext-3.2.1/adapter /ext/ext-base.js "> </script> <script type =" text/javascript "language =" javascript "src =" ext-3.2.1/ext-all.js "> </script> <script type = "text/javascript" language = "javascript" src = "ext-3.2.1/examples/shared/examples. js "> </script> <script type =" text/javascript "> Ext. onReady (function () {var pbar = new Ext. progressBar ({id: 'pbar ', width: 300, value: 100, renderTo: Ext. getBody ()}); var task = {run: function () {Ext. ajax. request ({url: 'ssssbar. jsp ', params: {curr: pbar. value}, success: function (response, options) {var value = response. responseText; pbar. updateProgress (parseFloat (value), Math. random (parseInt (value * 100) + "%"); if (Math. random (parseInt (value * 100) = 100) {pbar. updateText ("loaded"); Ext. taskMgr. stop (task) ;}, failure: function () {Ext. domHelper. insertHmtl ('beforeend', Ext. getBody (). dom, "loading failed");} www.2cto.com})}, interval: 500} Ext. taskMgr. start (task) ;}); </script> jsp code <% System. out. println ("loading data... "); String curr = request. getParameter ("curr"); System. out. println (curr); out. println (curr + 100); %>