Hi ,i convert contrller as jSp And presentation as
servlet ...will it do? if so what are advantage and
idsadvantages

Answer Posted / shankar

If u use Servlet as presentation layer,then if u want to
modify ur program in future ,u have to shutdown the server
and class file has to be updated.

If ur usig JSP as presentation layer no need to
compile,update and shutdown the server.server container will
take care of it.

we can use JSP as controller but any one can view our code
but in servlet it is not possible.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are inner classes or non static nested classes in java?

938


What is java reflection?

766


Why does java have two ways to create child threads?

697


What about interrupt() method of thread class ?

854


What is string intern in java?

793


What are the important features of Java 8 release?

817


How do I get the | symbol on my keyboard?

798


What are different types of inner classes ?

786


Does java support multiple inheritance or not?

823


Is an object null?

751


What is the common usage of serialization?

823


What is default size of arraylist in java?

787


How to Sort Strings which are given in List and display in ascending order without using java api.

4107


What is the difference between length and length() method in java?

871


Can we write a class without main method in java?

700