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 |
Two persons start at the same point, walk in opposite directions with 5km/hr and 5.5km/hr respectively. What is the distance separated after 2 and half hrs?
A printer produced 176,400 pages in a given day. If the printer was in operation for seven hours during the day, how many pages did it print per minute?
Dear Sir, Can u send the andhra bank model question with answers to my Email ID
A person spending out 1/3 for cloths , 1/5 of the remaining for food and 1/4 of the remaining for travellers is left with Rs 100/- . How he had in the beginning ?
wind flows 160 miles in 330 min, for 80 miles how much time required.
4,44,444,4444. Something like this.
Find the correct choice if the sum of any 4 consecutive numbers is divisible by a number?
price of a product is reduced by 30% . What percentage should be increased to make it 100%
Why we declare in the way List ab = new ArrayList(); what is the use of it?
A wall with no windows is 11 feet high and 20 feet long. A large roll of wall paper costs Rs 25 and will cover 60 sq feet of wall. A small roll of wallpaper costs Rs 6 and will cover 10 sq feet of wall. What is the least cost for enough wallpaper to cover the wall? a) Rs 132 b) Rs 75 c) Rs 120 d) Rs 99
5 Answers eClerx, XL Dynamics,
A theif steals half the total no of loaves of bread plus 1/2 loaf from a backery. A second theif steals half the remaing no of loaves plus 1/2 loaf and so on. After the 5th theif has stolen there are no more loaves left in the backery. What was the total no of loaves did the backery have at the biggining.
Ben can have a piece of work done in 8 days, Joe can work three times faster than the Ben, Ram can work five times faster than Ben. How many days will they take to do the work together ?