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
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 |
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 |
How do you escape in java?
Explain illegalmonitorstateexception and when it will be thrown?
How do you define a variable?
What is string [] java?
What is hashing principle in java?
Write a java program for binary search?
what is the need of the Ajax?
Why can't we use static class instead of singleton?
How to find the index of the largest number in an arraylist java?
How do you do exponents in java?
What are the names of interfaces that doesn't consists of method/s ?
Can we use switch statement with strings?