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 this valid in java ? Can we instantiate interface in java?
What do you mean by a JVM?
Mention the default values of all the elements of an array defined as an instance variable.
Are primitives objects?
What is boolean logic?
What is a subsequence of a string?
What is stringreader?
If you are given the name of the function at run time how will you invoke the function?
What is number data type?
What if static is removed from main method?
Explain the features of java?
What is function declaration?
What is bufferedreader in java?
What is a function in java?
What do you understand by an io stream?