javax.servlet, Java SE or EE?

Discussion in 'Java' started by zhangyuewuliu, May 22, 2007.

  1. Hi,

    I was wondering whether javax.servlet API belongs to java SE or EE?
    When I look through some document, it seems like javax.servlet is part
    of EE. However, I can use javax.servlet under Java SE 5.

    I also have the same question regarding javax.xml and java.sql.

    I guess my biggest questions is that what is the difference between SE
    and EE? What I originally understand is that EE includes the packages
    for web services, SOA development. But it really confuses me what API/
    package is included in SE and EE.

    zhangyuewuliu, May 22, 2007
    1. Advertisements

  2. zhangyuewuliu

    Joe Attardi Guest

    Servlets are under Java EE. You probably have the servlet API JAR in
    your classpath or something.

    For the definitive answer, check the API Javadoc for SE and EE to see
    under which one a particular package falls.
    There is some overlap. Java SE has some javax.xml classes, and Java EE
    does as well. (I think.. this is all from memory here!)
    Joe Attardi, May 22, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.