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...


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 show, ticket numbers from 101 to 350 are made to sit consecutively. What is the probability that the number of the ticket, selected at random, will be a hundredth digit of 2?

0 Answers   CGI,


Painter of Mona lisa painting?

3 Answers  


in a class, 20 opted for physics,17for maths,5for both and 10 for other subjects.the class contains how many students ?

9 Answers   Cognizant,


slur : speech :: smulge : ?

0 Answers   CTS,


Find the Next Series Nuumber 21, 463, 687, 238, 1134, ----

0 Answers   Citicorp,


Find the Series number: 0,2,3,5,8,10,15,17,24,26,..

0 Answers   IIT Delhi,


Total distance is 120 km . Going by 60kmph and coming back by 40kmph what is the average speed?

8 Answers   Accenture, CMC,


Four of the following five are alike in a certain way and so form a group. Which is the one that does not belong to that group? (a) Baking (b) Steaming (c) Cooking (d) Frying (e) Boiling

3 Answers  


In a storage stall of 5x3x2inch.How many blanks of size 2x1x1inch can be stored..

0 Answers   Ramco,


A ship is away from the shore by 180 miles.A plane is travelling at 10 times speed of the ship.How long from the shore will they meet?

0 Answers   Infosys,


A helicopter drops two trains, each on a parachute, onto a straight infinite railway line. There is an undefined distance between the two trains. Each faces the same direction, and upon landing, the parachute attached to each train falls to the ground next to the train and detaches. Each train has a microchip that controls its motion. The chips are identical. There is no way for the trains to know where they are. You need to write the code in the chip to make the trains bump into each other. Each line of code takes a single clock cycle to execute. You can use the following commands (and only these); MF - moves the train forward MB - moves the train backward IF (P) - conditional that's satisfied if the train is next to a parachute. There is no "then" to this IF statement. GOTO

7 Answers   ASD Lab, HP, Micro Labs, Microsoft,


Two pipes A and B when working alone can fill a tank in 36 minutes and 45 minutes respectively. A waste pipe C can empty the tank in 30 minutes.First A and B are opened After 7 minutes. C is also opened . In How much time will the tank be full ?

0 Answers   Axis Bank,


Categories