Describe how a servlet can process AJAX requests using GET and POST methods.

  • Both doGet and doPost methods
  • Use a separate servlet for AJAX
  • Use only doGet method
  • Use only doPost method
A servlet can process AJAX requests using both the doGet and doPost methods. The choice depends on the nature of the AJAX request and the type of data being sent. Using both methods allows flexibility in handling various types of AJAX requests within the same servlet.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *