Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are passing parameters?

1089


Can you tell me range of byte?

992


Why is it called a string?

1011


What language is java written?

1021


What is space character in java?

1110


What is java used for on a computer?

997


What is the difference in between cpp and java? Can u explain in detail?

1091


Convert a BST into a DLL and DLL to BST in place.

1116


What is method in research paper?

1136


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2821


Can we sort list in java?

973


What is map and hashmap in java?

1065


What is consumer in java?

977


Give few examples of final classes defined in Java API?

1204


What do you mean by an object in java?

1132