| Author |
Servlets and JSP
|
Vallabhaneni Suresh Kumar
Ranch Hand
Joined: Mar 01, 2004
Posts: 68
|
|
|
Which one is faster among servlet and JSP and why?
|
 |
Ko Ko Naing
Ranch Hand
Joined: Jun 08, 2002
Posts: 3178
|
|
servlet is faster than JSP... Cos JSP is indeed transformed to servlet behind the scene to respond the user's request... Hope it helps...
|
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
|
 |
Vallabhaneni Suresh Kumar
Ranch Hand
Joined: Mar 01, 2004
Posts: 68
|
|
|
Thanks Mr.Koko Nalng
|
 |
Jeroen Wenting
Ranch Hand
Joined: Oct 12, 2000
Posts: 5093
|
|
Servlet is therefore faster in theory than JSP only on the first call, as afterwards it's the compiled code that gets called In practice, it all depends on the quality of the code generator that turns your JSP into compilable Java code. Some are better than others and will generate more optimised Java.
|
42
|
 |
 |
|
|
subject: Servlets and JSP
|
|
|