| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Apr 2006
Location: India
Posts: 25
Thanks: 3 Thanked 1 Times in 1 Posts Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 3
|
why we should not override service() in a servlet
why we should not override service() method in a servlet instead of overrriding helper method ie; doGet , doPost etc.
|
|
|
|
|
|
#2 (permalink) |
|
Member
Join Date: Aug 2006
Age: 25
Posts: 90
Thanks: 1 Thanked 10 Times in 7 Posts Thanks: 1
Thanked 10 Times in 7 Posts
Rep Power: 3
|
Re: why we should not override service() in a servlet
Well, The service() method mustnot be overridded.Because the service() method having the code that passes the request to the either doGet() method or doPost() method, either of the those request are required by the client.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| J2EE - What is meant by Servlet. What are the parameters of the service method | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 02:10 PM |
| BSNL testing Triple Play service offering voice, internet and television | yathish | Chit Chat Zone | 1 | 16-01-07 09:30 PM |
| HSBC Electronic Data Processing India Pvt. Ltd Customer Service Executive | sridhar | FRESHER JOBS | 0 | 27-09-06 11:42 PM |
| CA | vista | Other Queries | 2 | 14-04-06 02:49 AM |
| servlets | naga | JAVA Technologies | 1 | 21-02-06 01:40 PM |