Just a question that I was wondering about. I remember reading that Servlets have a speed advantage over JSP. Why is this the case, shouldn't it be about the same? What's causes JSP to load slower? Any answers would help, thanks.
I would believe they are faster for the first time acess comparision only. When a JSP is accessed the first time, unless it is pre-compiled, it takes time to be converted into a servlet. Then it is loaded. I don't think there is a significant performance hit after that, although I must admit I have never stress tested them. regds. - madhav
Take a Minute, Donate an Hour, Change a Life
yeah i agree with madhav that since the first time a request is send to a jsp it is compiled to a servelet before processing the request, henchforth I don't see any reason why a servlet should be faster vis a vis a jsp...may be this could across various servers but faster...I doubt