This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we use doGet and doPost methods in a single Servlte?  RSS feed

 
Sanjay Bahrani
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
Can We perform 2 different operations with the database by using doGet and doPost methods.
For eg. one method is used to send the data in database (ie doPost) and other method is to collect the info from database (ie doGet).
Remember both should be from a single Html page.
Thankz.
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can use bothe methods. You can just have one call the other. i.e. call your doGet method from doPost or vice versa.
Bosun
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!