Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


Difference between JSP & servlets.



Difference between JSP & servlets...

Answer / sivasubramanian.k

JSP are simply the html pages with some Java code
encapsulated in special tags. We use them in that case when
a smaller part of page is generated dynamicly.

Servlets on the other hand, are pure Java classes extendend
from javax.servlet.http.HttpServlet. They can generate html
pages too.

JSPs are subclasses of Servlets. They do thing the other
way with the HTML or presentation code being written and
the code being placed between special tags <% %>. The first
time a page is requested, the JSP compiler creates java
code, compiles it, registers the servlet and calls it.
After the first request, each additional request calls it
like any other servlet.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More General Aptitude Interview Questions

In a class there are 45 pupil, out of them 12 are in debate only and 22 in singing only. Then how many in both?

0 Answers   Accenture,


What is the average candidates who appeared from state q during the given years?

0 Answers  


A person needs 6 steps to cover a distance of one slab. if he increases his foot length(step length) by 3 inches he needs only 5 steps to cover the slabs length. what is the length of the each slab.

0 Answers   Infosys,


Suppose an individual who firmly believes in keeping promises has promised to return a weapon to a person she knows to be extremely dangerous. According to Murphy, which of the following, if true, would WEAKEN the notion that she should return the weapon

1 Answers   Satyam,


Y catches 5 times more fishes than X. If total number of fishes caught by X and Y is 48, then number of fishes caught by X?

0 Answers   BPCL Bharat Petroleum, Sonata,






What is the 8th term in the series 1,4, 9, 25, 35, 63, . . . ?

0 Answers   HCL,


Dear Sir, Please send me the last 5 years question paper of Clerkship exam to my mail ID. My mail ID is alam_ershad@hotmail.com

0 Answers   State Bank Of India SBI,


4. When 2 dice are simultaneously thrown, is it possible that one of the ____ occurs. Result 1: A 5 and a 6 are obtained. Result 2: A 5 is obtained twice. Select the response that you agree with the most.

4 Answers  


A class consists of 100 students, 25 of them are girls and 75 boys; 20 of them are rich and remaining poor; 40 of them are fair complexioned. The probability of selecting a fair complexioned rich girl is

0 Answers   Accenture,


In 1978, a kg of paper was sold at Rs25/-. I f the paper rate increases at 1.5% more than inflation rate which is of 6.5% a year , then what wil be the cost of a kg of paper after 2 years? a)29.12 (b) 29.72 (c) 30.12 (d) 32.65 (e) none of these

6 Answers   IBM,


out of three numbers first is twice the second and is half of third.if the average of the 3 number is 56 the three no. in order are

3 Answers  


The positions of the first and the fifth digit in the number 93264187 are interchanged. Similarly, the positions of the second and the sixth digits are interchanged and so on. Which of the following will be the third digit from the right end after the rearrangement? (a) 8 (b) 3 (c) 2 (d) 6 (e) None of these

5 Answers  






Categories