Not getting response while using doPost Path Based Servlet | Community
Skip to main content
Level 2
Aug 28, 2022 10:04 AM UTC
Solved

Not getting response while using doPost Path Based Servlet

Hi, I am trying to use and explore the doPost Servlet, here I am just writing a text as response, also written an AJAX call in the HTML file of a TEST component and then I am inserting that component to the page. Please refer the below snaps.

But this is not working, getting an error when I am hitting the Path of the servlet (refer the below snap), but when I changed this servlet to "doGet" then it is working fine. So, what specifically is wrong here in doPost method?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 28, 2022 12:24 PM UTC

You can't hit post request from browser url path.

use postman to test post request.

Arun Patidar

4 replies

arunpatidar
arunpatidarAccepted solution
New Participant
Aug 28, 2022 12:24 PM UTC

You can't hit post request from browser url path.

use postman to test post request.

Translate
Arun Patidar
vikas101Author
Level 2
Aug 28, 2022 12:59 PM UTC

I have already done that and it is working fine. Thanks!

Translate