javascript
Brief description  about Online courses   join in Online courses
View vijeth  AG 's Profile

difference between JSP and Servlets

what is the difference between JSP and Servlets? Can we design a web application by using "only JSP's" or "only Servlets" ?
Asked by vijeth AG | Jun 18, 2010 |  Reply now
Replies (1)
View java teacher 's Profile
The main difference between them is, In servlets both the
presentation and business logic are place it together.
Where as in jsp both are saparated by defining by java
beans .
In jsp's the overall code is modulated so the developer
who deesn't know about java can write jsp pages by simply
knowing the additional tages and class names.
One more important to be considered is servlet take less
time to compile. Jsp is a tool to simplify the process and
make the process automate.

Both are webapplications used to produce web content that
mean dynamic web pages. Bot are used to take the requests
and service the clients.
Dec 28, 2010