We can write any Java Logics in our JSP. Then why we are
using servlets(Controller Layer) to interact with the DAO ?
Answer Posted / babu
ya u can write your java logic's Jsp or u can use Jsp action
tags to implement the business logic. But if u do like this
your source code may be viewed and used by the others, for
restricting or preventing your source code we are using mvc
architecture like in struts so that's why we don't want to
write java code in Jsp.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why can't you declare a class as protected?
Is void a type?
How does varargs work in java?
How are destructors defined in java?
What is mysql driver class name?
What does this () mean in constructor chaining concept?
Which category the java thread do fall in?
What language is pass by reference?
Explain about object oriented programming and its features?
How can you traverse a linked list in java?
What is string [] java?
What is lazy programming?
What is object-oriented programming?
How many digits is int32?
Why webdriver is an interface?