This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Marty, what are the good/bad things in the new Servlet specification? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Marty, what are the good/bad things in the new Servlet specification?" Watch "Marty, what are the good/bad things in the new Servlet specification?" New topic
Author

Marty, what are the good/bad things in the new Servlet specification?

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Howdy-
I'd like to know what you think about the new servlet specification. Is it going to improve and facilitate the way we develop web applications? Are there only minimal changes? are they useless? what are the most useful things (filters?). something you miss?
thanks
[ November 11, 2003: Message edited by: Andres Gonzalez ]

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Marty Hall
Author
Ranch Hand

Joined: Jan 02, 2003
Posts: 111
I'd like to know what you think about the new servlet specification. Is it going to improve and facilitate the way we develop web applications? Are there only minimal changes? are they useless? what are the most useful things (filters?). something you miss?

Well, if you really mean the new servlet spec (i.e., servlets 2.4 only rather than the combination of servlets 2.4 and JSP 2.0), there are not that many changes. Filters were introduced in the previous spec, not this one. The main new things are:
  • Use of an XML schema instead of a DTD to describe the web.xml syntax. This somewhat overcomes the annoying restrictions on order of elements in web.xml before (eg that you had to have all of the "servlet" elements before any of the "servlet-mapping" elements instead of alternating them).
  • Two new listeners (ServletRequestListener and ServletRequestAttributeLlistener)
  • The fact that welcome files can now be servlets.
  • A logout method that is more powerful than HttpSession.invalidate (since it logs the user out of all sessions if they are using single-signon).
  • Miscellaneous minor syntax changes.


  • In my opinion, these are all quite minor. Now, asking what changes are in the associated JSP 2.0 spec is a totally different matter...
    Cheers-
    - Marty


    Java training and consulting
    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    JSP 2.0 is a big impact on J2EE web component that the new SCWCD exam is coming up because of the evolution of JSP 2.0.
    I guess the obvious improve to JSP 2.0 is the expression language. It will surely make web developers in other technologies like ASP and PHP be interested in J2EE technology...
    As for me, I am a die-hard Java web developer... I am really impressed of the evolution of JSP 2.0...


    Co-author of SCMAD Exam Guide, Author of JMADPlus
    SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Originally posted by Marty Hall:

    Now, asking what changes are in the associated JSP 2.0 spec is a totally different matter...

    so. what then are the good/bad things in the new JSP2.0 spec ?
    Axel
    [ November 12, 2003: Message edited by: Axel Janssen ]
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8904

    Lot of things to be learnt. I would say it a major evolution.
    [ November 12, 2003: Message edited by: Pradeep Bhat ]

    Groovy
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8904

    http://otn.oracle.com/oramag/oracle/03-nov/o63dev_jsp.html
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Thanks Pradeep,
    so its
    1. expression language, which will no doubt cause quite big change in writing jsp pages. Had some exposure to el through JSTL and I found the concept very effective.
    2. SimpleTag interface, which has just one lifecycle-method (doTag).
    3. tag files, which make development/deployment of tag libraries much simpler (no tld, no entries in web.xml, no compilation).
    Anything more?
    Some bonus-info, or corrections about the 3 points mentioned.
    regards Axel
    [ November 12, 2003: Message edited by: Axel Janssen ]
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8904

    If JSF is released it will a major event for J2EE web development. I guess it will be a part of J2EE v1.5.
    Andres Gonzalez
    Ranch Hand

    Joined: Nov 27, 2001
    Posts: 1561
    Originally posted by Pradeep Bhat:
    If JSF is released it will a major event for J2EE web development. I guess it will be a part of J2EE v1.5.

    It better be... Asp.net controls rule
    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    Originally posted by Pradeep Bhat:
    If JSF is released it will a major event for J2EE web development. I guess it will be a part of J2EE v1.5.

    Pradeep, I always think that JSF is already released. Is it not? If so, u mean we have to wait for the final release until the next release of J2EE 1.5.
    Actually I haven't even tried JSF yet, have u? Could u share some advantages of it? Thank you Pradeep...
    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    Originally posted by Andres Gonzalez:

    It better be... Asp.net controls rule

    Hi Andres,
    I just would like to know what you actually mean by the words "Asp.net controls rule"... For J2EE technology, servlets control rule as well... Is it what u mean? Just curious...
    Andres Gonzalez
    Ranch Hand

    Joined: Nov 27, 2001
    Posts: 1561
    Originally posted by Ko Ko Naing:

    Pradeep, I always think that JSF is already released. Is it not? If so, u mean we have to wait for the final release until the next release of J2EE 1.5.
    Actually I haven't even tried JSF yet, have u? Could u share some advantages of it? Thank you Pradeep...

    You don't have to wait for it to be released. If I'm not mistaken, oracle, borland showed off their respective implementations on JSF at javaOne. I also remembered reading an article in javaworld looong time ago, with code examples on how to use this "new" technology.
    [ November 12, 2003: Message edited by: Andres Gonzalez ]
    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    Originally posted by Andres Gonzalez:

    You don't have to wait for it to be released. If I'm not mistaken, oracle, borland showed off their respective implementations on JSF at javaOne. I also remembered reading an article in javaworld looong time ago, with code examples on how to use this "new" technology.
    [ November 12, 2003: Message edited by: Andres Gonzalez ]

    That's great, Andres.. At least you have tried sthing new in J2EE technology... For me, I am still struggling in traditional J2EE techs like JSPs, Servlets, EJBs and Custom Tags... I hope I can try such wonderful technologies like JSF, JSTL 1.1 in the near future...
    Andres Gonzalez
    Ranch Hand

    Joined: Nov 27, 2001
    Posts: 1561
    Originally posted by Ko Ko Naing:

    Hi Andres,
    I just would like to know what you actually mean by the words "Asp.net controls rule"... For J2EE technology, servlets control rule as well... Is it what u mean? Just curious...

    What I meant was : "Asp.net controls rule"
    hmm.. "servlets control rule as well"? can you explainto me what you meant by writing "servlets control". We know that servlets are for different purposes. Have a look at this link and you will understand what I tried to say
    [ November 12, 2003: Message edited by: Andres Gonzalez ]
    Axel Janssen
    Ranch Hand

    Joined: Jan 08, 2001
    Posts: 2164
    Originally posted by Ko Ko Naing:

    JSTL 1.1 in the near future...

    JSTL is actually pretty easy. Its about using custom tags. That's lot more easier than writing taglibs.
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8904

    JSF spec is still not final. Read the draft here
    http://java.sun.com/j2ee/javaserverfaces/download.html
    Marty Hall
    Author
    Ranch Hand

    Joined: Jan 02, 2003
    Posts: 111
    Hi Andres,
    I just would like to know what you actually mean by the words "Asp.net controls rule"...

    An impenetrable colloquialism for non-Americans. He was using "controls" as a noun, and "rules" in the vernacular sense of "are the best", so presumably meant "The user interface controls from ASP.NET are the greatest."
    Cheers-
    - Marty
    Andres Gonzalez
    Ranch Hand

    Joined: Nov 27, 2001
    Posts: 1561
    Originally posted by Marty Hall:

    An impenetrable colloquialism for non-Americans. He was using "controls" as a noun, and "rules" in the vernacular sense of "are the best", so presumably meant "The user interface controls from ASP.NET are the greatest."
    Cheers-
    - Marty

    Ko Ko Naing
    Ranch Hand

    Joined: Jun 08, 2002
    Posts: 3178
    Originally posted by Marty Hall:

    An impenetrable colloquialism for non-Americans. He was using "controls" as a noun, and "rules" in the vernacular sense of "are the best", so presumably meant "The user interface controls from ASP.NET are the greatest."
    Cheers-
    - Marty

    Oops... :roll: I'm not familiar with that kinda slangs... Sorry...
     
     
    subject: Marty, what are the good/bad things in the new Servlet specification?
     
    Similar Threads
    jsp login
    Studying for OCP WCD. Need help with study material
    SCWCD 1.4
    JEE 1.5
    How do you pre initialize servlets in a webcontainer?