• Post Reply Bookmark Topic Watch Topic
  • New Topic

GET method

 
Manav Mitra
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This must be easy, but I am stuck here...
I want to support POST method only and not the GET method, how do I do this?
Thanks,
- Manav
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My limited understanding is that JSP doesn't differentiate between the two. Perhaps there is an API call to find this out, but I don't know of one. If you can, then I suppose you can just throw an exception if the method was GET instead of POST.
 
Manav Mitra
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the way. It should be something similar to this

Thanks anyway!
- Manav
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!