• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP method

 
Fisher Daniel
Ranch Hand
Posts: 582
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I am new in JSP.
HTTP methods are POST, PUT, GET, etc..
How do we use each of them in our JSP pages?
thanks
daniel
 
Debashish Chakrabarty
Ranch Hand
Posts: 231
Firefox Browser Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally we would override the corresponding doGet(), doPost() methods in a Servlet but you don't have to do that in a JSP. What do you intend do to do with these?
 
Kevin Mukhar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSPs do not normally concern themselves with the difference between POST and GET. If you REALLY need to do this, you can check the HTTP method with a method call to the implicit request object. The method is getMethod(). You can read about the details of this method in the JavaDoc for HttpServletRequest.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!