The moose likes JSP and the fly likes HTTP method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "HTTP method" Watch "HTTP method" New topic
Author

HTTP method

Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
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

Joined: May 14, 2002
Posts: 224

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?


Debashish
SCJP2, SCWCD 1.4
Kevin Mukhar
Ranch Hand

Joined: Nov 28, 2000
Posts: 83
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.
 
IntelliJ Java IDE
 
subject: HTTP method
 
Threads others viewed
JSP pages problem...
Thank you
Question on JSF
How to Send Parameters from One JSP to Another using Links?
Taking in boolean parameters
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com