We can write any Java Logics in our JSP. Then why we are
using servlets(Controller Layer) to interact with the DAO ?
Answer Posted / ami singh
yes you are right but why we write all the business logic in
jsp ,becuse we just in a first step to follow the mvc
architectuer like in struts so thats why we don't want to
write java code in jsp
we just use jsp for a view and he servlet for the
controller for business logic
oherwise you wan o right all business in jsp so is up to you
noone sop you do this
thanks amit singh
amitsing2008@gmail.com
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Is boolean a data type in java?
Why we cannot override static method?
How to do encapsulation in java?
What is a heavyweight component?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Why do you canvas?
What is the class in java?
how its run?
What is the difference between yielding and sleeping?
How will you invoke any external process in java?
Can a constructor be made final?
What is gui programming?
Is main a keyword in java?
Differentiate between vector and array list.
Why parameters should be passed by reference?