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 is default locale java?

791


What about instanceof operator in java?

789


Is java util regex pattern thread safe?

734


Is java map thread safe?

701


What is variable declaration and definition?

744


'A class is a template for an object' explain this statement.

747


What is a substitution variable?

793


What is supplier in java?

762


Explain listiterator and methods in listiterator?

754


What is method with example?

782


Explain the difference between an Interface and an Abstract class?

872


What are the different http methods?

729


What is difference between overloading and overriding in java?

740


How do you override a private method in java?

688


What is the disadvantage of java?

715