• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can my web-app's welcome-file servlet take in POST data?  RSS feed

 
Hari Mohan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet used as the welcome-file of my web-app. Is there a way I can make the doPOST method of the servlet called when this servlet gets called when I enter just the context-root?

web.xml:

MyServlet.Java:



Say my context root is MyApp, is there a way, I can get POST printed by calling http://<hostname>:<portnum>/MyApp ?


Regards,
Hari
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like an odd requirement. Why?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would be contrary to the intent of the HTTP methods GET and POST wouldn't it?

Wikipedia article on HTTP methods.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!