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
Explain the concept of hashtables?
Is empty .java file name a valid source file name?
Tell me how many ways are there to initialise an integer with a constant.
Can abstract class have private constructor?
What is data type modifier?
What is a control variable example?
Can we override private method in java?
How to declare an arraylist in java?
Can static methods access instance variables in java?
What are synchronized blocks in java?
Why is string buffer better than string ?
Explain the difference between static and dynamic binding in java?
How to check if linked list contains loop in java?
What java ide should I use?
Which is better arraylist or vector?