wood burning stoves 2.0*
The moose likes Servlets and the fly likes How volume 2 will deal with custom tags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How volume 2 will deal with custom tags?" Watch "How volume 2 will deal with custom tags?" New topic
Author

How volume 2 will deal with custom tags?

Dani Mazzuca
Ranch Hand

Joined: May 21, 2003
Posts: 70
Hi Marty,
I have the MS&JSP book and it is really cool. Congratulations. However, one of the things I didn't like very much, was the chapters about custom tags. The subject by itself is confused, with all that method and return value changes, from version to version. Now, JSP 2.0 introduced two new ways to write custom tags, SimpleTags and TagFiles, that would simplify things.
I noticed volume 1 would not have custom tags, and maybe you are not writing about this subject now, however do you have some idea of how you are going to deal with ALL that stuff in volume 2 to turn it simple? I suggest you change the way you did in MS&JSP book, I mean, I would suggest you start introducing custom tags with the new techniques in JSP 2.0, you add an extra appendix about classic tags in JSP 1.2, and cut off JSP 1.1 custom tags.
Dani Mazzuca
Marty Hall
Author
Ranch Hand

Joined: Jan 02, 2003
Posts: 111
...I noticed volume 1 would not have custom tags, and maybe you are not writing about this subject now, however do you have some idea of how you are going to deal with ALL that stuff in volume 2 to turn it simple?

My tentative plan is to have four chapters on custom tags:

  • Basic custom tags using Java syntax (both with SimpleTagSupport and TagSupport).
  • Advanced custom tags using Java syntax (ie tags that modify their body content, looping tags, nested tags)
  • Tags using JSP syntax (tag files)
  • JSTL


  • Cheers-
    - Marty


    Java training and consulting
    Dani Mazzuca
    Ranch Hand

    Joined: May 21, 2003
    Posts: 70

    Advanced custom tags using Java syntax (ie tags that modify their body content, looping tags, nested tags)

    Marty,
    Don't you think that with the introduction of JSTL, and the power of its iteration tags, there will be very rare cases where someone need to write his own looping tag?
    Could you tell us some example where a developer would need to write a particular looping tag, just because the JSTL c:forEach and c:forTokens don't fit his needs?
    Dani Mazzuca
    [ November 13, 2003: Message edited by: Dani Mazzuca ]
    [ November 13, 2003: Message edited by: Dani Mazzuca ]
    Marty Hall
    Author
    Ranch Hand

    Joined: Jan 02, 2003
    Posts: 111
    Don't you think that with the introduction of JSTL, and the power of its iteration tags, there will be very rare cases where someone need to write his own looping tag?

    I didn't mean "general iteration tags," I meant "tags that do some sort of looping (ie evaluate their body content more than once)." Yes, I think people will still write tags that do this.
    Cheers-
    - Marty
    Ko Ko Naing
    Ranch Hand

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

    I didn't mean "general iteration tags," I meant "tags that do some sort of looping (ie evaluate their body content more than once)." Yes, I think people will still write tags that do this.
    Cheers-
    - Marty

    Of course, people like me, sometimes don't know whether a certain kind of JSTL is already existed... So we sometimes re-invented the wheel... But if we learnt pretty more on such kind of ready-made standard tag library, we will surely effectively be able to use them...
    I lately found out that studying for some kind of ready-made things is also important for developers, who always accidently develop the same old solutions for particular problems... :roll:


    Co-author of SCMAD Exam Guide, Author of JMADPlus
    SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: How volume 2 will deal with custom tags?