This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Marty Hall
Author
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
     
    Ko Ko Naing
    Ranch Hand
    Posts: 3178
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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...
     
    Axel Janssen
    Ranch Hand
    Posts: 2166
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 8927
    Firefox Browser Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Lot of things to be learnt. I would say it a major evolution.
    [ November 12, 2003: Message edited by: Pradeep Bhat ]
     
    Pradeep bhatt
    Ranch Hand
    Posts: 8927
    Firefox Browser Java Spring
     
    Axel Janssen
    Ranch Hand
    Posts: 2166
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 8927
    Firefox Browser Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 1561
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 3178
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 3178
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 1561
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 3178
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 1561
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 2166
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 8927
    Firefox Browser Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    JSF spec is still not final. Read the draft here
    http://java.sun.com/j2ee/javaserverfaces/download.html
     
    Marty Hall
    Author
    Ranch Hand
    Posts: 111
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 1561
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 3178
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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...
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic