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


Please Help Members By Posting Answers For Below Questions

Is this valid in java ? Can we instantiate interface in java?

548


What do you mean by a JVM?

569


Mention the default values of all the elements of an array defined as an instance variable.

523


Are primitives objects?

566


What is boolean logic?

561






What is a subsequence of a string?

549


What is stringreader?

527


If you are given the name of the function at run time how will you invoke the function?

685


What is number data type?

532


What if static is removed from main method?

573


Explain the features of java?

595


What is function declaration?

532


What is bufferedreader in java?

580


What is a function in java?

570


What do you understand by an io stream?

585