Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


how JSP can extend servlet or interface ...?

Answers were Sorted based on User's Feedback



how JSP can extend servlet or interface ...?..

Answer / aashish r. wadhokar

no, We cannot implement an interface in a jsp bcoz jsp is an
file not a class as well as jsp is converted into a servlet
class
and this translation(jsp file to servlet class) is done by
jsp engine so we cant implement interface in jsp file.

yes, we can extend a class in jsp page using extends keyword
using extends attribute of the page directive.
eg: extends "com.classes.class"

Is This Answer Correct ?    16 Yes 1 No

how JSP can extend servlet or interface ...?..

Answer / aashish r. wadhokar

no, We cannot implement an interface in a jsp bcoz jsp is an
file not a class as well as jsp is converted into a servlet
class
and this translation(jsp file to servlet class) is done by
jsp engine so we cant implement interface in jsp file.

yes, we can extend a class in jsp page using extends keyword
using extends attribute of the page directive.
eg: extends "com.classes.class"

Is This Answer Correct ?    16 Yes 2 No

how JSP can extend servlet or interface ...?..

Answer / jayakrishna

We cannot implement an interface in a jsp but we can extend
a class in JSP by using extends attribute of the page
directive.

extends "package.class"
The fully qualified name of the superclass of the Java
class file this JSP file will be compiled to. Use this
attribute cautiously as it can limit the JSP container's
ability to provide a specialized superclass that improves
the quality of the compiled file.


Is This Answer Correct ?    7 Yes 4 No

Post New Answer



More Servlets Interview Questions

What's the difference between authentication and authorization?

0 Answers  


What's the difference between servlets and applets?

0 Answers  


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

0 Answers  


What are the types of ServletEngines?

1 Answers  


What are the functions of Servlet container?

0 Answers  






What is the use of servlet wrapper classes?

0 Answers  


How httpservlet is different from the genericservlet?

0 Answers  


What is servlet invoker?

0 Answers  


What do you mean by a filter and how does it work?

0 Answers  


Difference between Include, Forward and sendRedirect in Servlet?

7 Answers   AZTEC, KPIT, TCS,


What is a parser. What does a parser do with a XML? Why do we need it?

1 Answers  


What is the use of RequestDispatcher in servlet?

18 Answers   Accenture, CTS, TCS,






Categories