Error faced in doPost in this servlet
<p>Assuming the data return type from MyServlet is html, and doPost is overridden in this servlet. Correct all errors in the code below.</p>

<pre><code>1. &lt;script type=”xxxx/xxxxxxxxxx&gt;
2.         $(document).ready(function() {    
3.                     $('.books').click(function() {
4.                                 $.ajax({
5.                                     url: 'MyServlet',
6.                                     type: 'GET',
7.                                     dataType: 'xml',
8.                                     timeout: 1000,
9.                                     error: function(){
10.                                       alert('Unable to get book list');
11.                                   },
12.                                   success: function(html){
13.                                       $('#main').html(html);
14.                                   }
15.                               });
16.                   })
17.       });
18. &lt;/script&gt;
19. &lt;body&gt;
20. &lt;input type='button' value='Get' id='books'&gt;
21. &lt;div  id="main" /&gt;
22. &lt;/body&gt;
</code></pre>
