we cant Override Jsp Service method?Why?
Answer Posted / baji
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 |
Post New Answer View All Answers
How can you use a servlet to generate a plain text instead of html?
What is servlet in web technology?
Is servlet a server side scripting language?
Write the code to get the server information in servlet.
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
What is servlet lazy loading?
What do you mean by cgi in servlet?
What is cgi and what are its drawbacks?
What do you mean by session tracking?
What do you mean by cgi and what are its drawbacks?
How can an existing session be invalidated?
Why HttpServlet class is declared abstract?
Explain Action Servlet?
Explain the steps involved in placing a servlet within a package?
Can we override destroy method in servlet?