Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Ron McLeod
paul wheaton
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Himai Minh
Bartenders:
Forum:
Servlets
why service() accepts HttpServletResponse
vianyrajnish rajnish
Ranch Hand
Posts: 70
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
i like to know .. why service() accepts httpservletrequest and httpservletresponse both ....when only httpservletrequest is enough..?
please reply me anyone
thanks,
vinay rajnish
Vishal Matere
Ranch Hand
Posts: 81
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Because service() ultimately calls doGet()/doPost() methods which needs response object to send response to client.
Alternatively user can overide service() method and can write his own code to return response.
HTH
SCJP <br />SCWCD <br />SCBCD <br />SCEA-1
Bear Bibeault
Sheriff
Posts: 67754
173
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If the request is "enough" how would you propose that a
servlet
writes output to the response and/or set headers?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Struts and Webservices
HttpServletRequestWrapper
How container Handle request
Question: why wrong super.service( (ServletRequest) req, (ServletResponse) res)
service method in HttpServlet
More...