Saravanan. Shanmugam

Greenhorn
+ Follow
since Jul 27, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saravanan. Shanmugam

You have to override atleast anyone of the eight methods (doGet(), doPost(),doDelete(), doOptions(), doPut(), doHead(), doOptions(), doHead()) in your servlet depending on purpose of the servlet. But the most commonly used methods are doGet(), doPost().

If you are calling the servlet from a HTML you can define the method that has to be called in the servlet in the method attribute of form tag. Default is doGet().

Well you don't have to care about when to use the methods in the ServletResponse or when not to, because we are dealing with HTTP we only use HttpServletResponse, which inherits ServletResponse.




13 years ago
I created a new servlet. when i tried to get ServletConfig using this.getServletConfig() or getServletConfig() i'm getting nullpointer exception.. Any idea on why am i getting this?
13 years ago