JSP Vs Servlet Processing

Discussions

Web tier: servlets, JSP, Web frameworks: JSP Vs Servlet Processing

  1. JSP Vs Servlet Processing (1 messages)

    Hai,
    I have an web-app which works fine with JSPs, but I when I used a servlet to do the same it does not work.

    Iam using Wait and Notify in the JSP and Servlet code.

    Is there a difference in the way the servlet/jsp container creates Threads to serve the Servlet and the way it creates threads to serve JSPs.

    10x in advance,Surya
  2. Is there a difference in the way the servlet/jsp container creates Threads to serve the Servlet and the way it creates threads to serve JSPs.


    I'm not sure what servlet container you use ... but they all have a way to "keep JSP file generated". This means that when a JSP file is changed, the servlet engine generates a servlet from the JSP and then compiles the servlet to a class file. By configuring your servlet container you can order it to keep the intermediate servlet files without deleting them.

    Then open the servlet file corresponding to your JSP and see what's different from your own servlet implementation.
    --Das