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
How to set the permissions to a file in java?
When is finally block not called?
What is subsequence of a string?
What does arrays sort do in java?
What do you understand by Header linked List?
What is finalize() function in java?
What is the use of StringTokenizer class?
What is qualitative variable?
What are the 8 primitive data types in java?
Can we create a constructor in abstract class?
What are the types of sockets in java?
What are default methods ?
What is the use of bufferedreader?
What are the advantages of java inner classes?
How do you use wildcards?