*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Servlets and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Servlets and JSP" Watch "Servlets and JSP" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlets and JSP
 
Similar Threads
what is defalut value of Custom tag body-content
pop up page
WA #1.....word association
creating a pop up calendar within a form
Struts: No getter method for property name problem