Difference between JSP & servlets.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Unsreambled the word P U T E C A S A H (like that) paraschute

920


In a fraction, if 1 is added to both the numerator at the denominator, the fraction becomes 1/2. If numerator is subtracted from the denominator, the fraction becomes 3/4. Find the fraction.

680


if the radius of the circle is increased by 6% then its area increased by

708


There r 1200 elephant .some have blue and pink strips.some have pink & green strip. 400 ele. have only pink strip. how many have only blue strip

843


A tailor has 37.5 metres of cloth and he has to make 8 piecesout of a metre of cloth. How many pieces can he make out of this cloth?

675






Zulus always speak truth and Hutus always speak lies. There are three persons A,B&C. A met B and says " I am a Zulu or I am Hutu". We don't know what exactly he said. then B meets C and says to c that " A is a Zulu ". Then C replied " No, A is a Hutu ". Who must be a Zulu ?

816


There are 1, 40, 00, 000 pencils of lengths ranging from 3 to 6 inches and are put up straight. The average length of 80% of pencils is 5 inches. Calculate the total length spanned by the pencils.

1187


. Select the correct statement a. NEXT SENTENCE and CONTINUE functionally does the same. b. Never can code a DECLARE CURSOR statement in procedure division. c. Edited numeric characters can be included in arithmetic operations. d. The Sub parameters of a DCB parameter are Keyword parameters.

1682


There are 7 people who take a test among which M is the worst, R is disqualified, P and S obtain same marks, T scores less than S and Q scores less than P, N scores higher than every one.

729


A bus started from bus stand at 8.00a m and after 30 min staying at destination, it returned back to the bus stand. The destination is 27 miles from the bus stand. The speed of the bus 50 percent fast speed. At what time it retur4ns to the bus stand

840


Zulus always speak truth and Hutus always speak lies. There are three persons A,B&C. A met B and says " I am a Zulu or I am Hutu". We don't know what exactly he said. then B meets C and says to c that " A is a Zulu ". Then C replied " No, A is a Hutu ". How many Zulus are there ?

982


Certain no. of men can finish a piece of work in 10 days. If however there were 10 men less it will take 10 days more for the work to be finished. How many men were there originally.

766


'X' liters of petrol can be filled in an automobiles tank. What part of full tank was removed, if 'Y' liters was removed when the tank was full?

683


if f(x)=1/x**2 , then f(f(f(x)))

780


if the area of square increases by 69% then side of the square increases by:

732