we cant Override Jsp Service method?Why?
Answers were Sorted based on User's Feedback
Answer / gunarathinam
My concern is as previous answer _jspServeice() is wriiten
by container and also in that method all the implicit
objects will be created except request and response. if you
overrirde that method you cant get those object. That is
the reason we cant overrirde service method in jsp.
| Is This Answer Correct ? | 44 Yes | 18 No |
The content what we are written in the JSP will go into
_jspService()method because we are implicitly implemented
it.if we again try to override explicitly, the JSP compiler
given error as " THE METHOD IS ALREADY IMPLEMENTED AND CAN'T
OVERRIDE" but in case of other two methods we are not
implementing it in the jsp.therefore the jsp compiler will
allow we can override jspInit() and jspDestroy().
Any method which are not to be overridden by the end
user are typically written starting with an '_'.
| Is This Answer Correct ? | 16 Yes | 4 No |
Answer / smriti
we cant Override Jsp Service method becoz container pepole
have responsbility for override _jspService() method and
implement all logic according to user given data
| Is This Answer Correct ? | 2 Yes | 5 No |
In jsp custom tags from child tags to how many levels of parent tags you can acess
what is SSL?
What is the difference between Get and Post Method?
What is the life-cycle of servlets?
Can a jsp be called using a servlet?
why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.
java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null while working with struts it displayed pls very ungent
The code in a finally clause will never fail to execute, right?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
Why is httpservlet declared abstract?
What is servlet in simple terms?
Differentiate between the print writer and servlet output stream?