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 |
The houses are numbered 1,2,3,? and reach the end of the street and backtracks toward s the starting point. The house numbered 10 is opposite to 23. there are even no of houses. Find the total no of houses.
There are 6 pairs of black socks and 6 pairs of white socks. What is the probability to pick a pair of black or white socks when 2 socks are selected randomly in darkness.
if the ratio of men to women in a particular dormitory is 5:3 which of the following could not be the number of residents in the dormitory
Each row of letters or numbers has a rule connecting them. Write the next number or letterin the brackets. 124 , 62 , 60 , 30 , 28 , 14 , (_ _ _)
The price of coffee increases by 20%, how much percent consumption of coffee should be reduced by Reema so that the expenditure on coffee remains the same.
10 green balls. You are allowed to move the balls between the boxes so that There are two boxes, one containing 10 red balls and the other containing when you choose a box at random and a ball at random from the chosen box, the probability of getting a red ball is maximized. This maximum probability is
if the sum of five consecutive nos. 35? how many prime nos are there ?
how to prepare for karnataka bank po exam? what'll be the topics in the exam?
1 Answers Bhel, Karnataka Bank,
19.) When two unbiased dice are tossed simultaneously, the numbers that appear on the top surface of the two dice are a and b.What is the probability that a^b is a perfect square? (a^b=a to the power of b) a)1/3 b)2/3 c)23/36 d)11/18 ans: 20.) When two unbiased dice are tossed simultaneously, the numbers that appear on the top surface of the two dice are a and b.What is the probability that (a × b) is a perfect square? a)5/36 b) 2/9 c) 7/36 d) 1/6
Why we declare in the way List ab = new ArrayList(); what is the use of it?
what is the difference between deviation & change control? what is trouble shooting?
if out of x bulbs y bulbs are broken;the % of non broken bulbs