can any one tell which is faster servlets/jsp/.And which server has high performance.
i just want to clarify. JSP is nothing but a precompiled servlet. everytime u invoke a request to a jsp file, it gets compiled into a servlet in its base directory.
This servlet will invoke the appropriate action and report errors if not sucessful. JSP is ultimately faster than servlets given the fact that JSP checks whether the class has changed. If not, it takes the same version of the class else compiles and generates the output.
But the advantage of using JSP is u can avoid out.println statements, have ur own customized tags etc.
Regarding ur 2nd part question.
It depends on the type of application u use. in some case jws proves to be more faster than apache and viceversa