Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How volume 2 will deal with custom tags?

 
Dani Mazzuca
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...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
     
    Dani Mazzuca
    Ranch Hand
    Posts: 70
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    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
    Posts: 111
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 3178
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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:
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic