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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / srinu

if take as Controller as Jsp some Disadvantage is their
1)Jsp means very less java code so JSP as not suitabel for
controller(Servlet suitable)
2)Jsp not able to communicate other model component just
like EJB,Spring

NO advantage are their u take as controller

if take as Presentation as servlet some Disadvantage is their
1)Any modification their servlets compulsary u save it
source code after recompile the web application and reloaded
the application(JSP IS better As presentation).

NOTE: JSP AS Presentation layer ,sevlet as controller its
reconended

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

please tell me what is wrapper class in java with example ?

6 Answers   HP,


When is the garbage collection used in Java?

0 Answers   BirlaSoft,


How big is a gigabyte?

0 Answers  


How does map works in java?

0 Answers  


What is difference between overloading and overriding?

2 Answers   Accenture,






What is the difference between size and length in java?

0 Answers  


whats the life cycle of jsp

15 Answers   Satyam,


What is the flag in java?

0 Answers  


What is the difference between final, finally and finalize() in java?

0 Answers  


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

0 Answers  


Is singleton class immutable?

0 Answers  


Detail discussions on JVM, memory management and garbage collector.

0 Answers   Expedia,


Categories