×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / I'm a little confused while I'm learning Java. Since we have JSP and EJB and JSP finally will be compiled into serverlet, what's the real use of Serverlet? If it's obsolete, I can release a lot of learning burden.
    • Happy new year every body! I almost forget today is new year's day.
    • JSP is only a way of wrtting Servlets...
      One cannot get rid of Servlets. If one does not understand the principle of Servlets, he/she cannot understnd/write JSP stuff.

      JSP is oriented to generating HTML pages.
      Servlets can do more. For instance, processings images. IF you use MVC architecture, you had better employ a servlet as the controller.
      • So, which one is more often used?
        • Quantitatively, JSP is more widely used. However, I don't think one can write JSP if he has never written Servlets.