Berkeley CSUA MOTD:Entry 23324
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2001/12/20-21 [Computer/SW/Languages/Web] UID:23324 Activity:kinda low
12/19   I'm just learning this to be more "marketable". JSP is just a more
        glorified Servlet (expanded Servlet) right? Then, is EJB also a more
        glorified Servlet? And J2EE is just a bunch of EJBs right? I'm hoping
        someone could just give me a simple explanation.
        \_Not exactly. JSP is an embedded servlet inside an HTML. So a servlet
        is analogous to a complete server side object, i.e. any type of CGI
        program. You hook up HTML to a servlet strictly by coding in links in
        your html. A JSP is actually written INSIDE html code, so it's
        analogous to ASP, ColdFusion, and very cursorely like JavaScript.
        When a JSP page is called, a servlet is actually compiled on the
        server side from the stub parts of the JSP. This is similar to all
        types of "Server Page" technology. The advantagous of Server Page
        stuff over traditional CGI type tech is that web people can just
        throw everything into one HTML page instead of having to write a
        seperate piece of code on the server. As a result, if you know
        servlets, you already know JSP.
        [ reformatted - motd formatting daemon ]
        \_ Servlets/JSPs are techniques for handling HTTP requests. EJB is
           an architecture for distributed object systems. J2EE includes
           JSP/Servlets, EJB, and other things like JMS (architecture/api
           for messaging middleware).