jsp2 tagfiles for building components

While introducing Spring MVC to the design team I got a question on building UI components. It got me thinking, most solutions have major drawbacks (in configuration, lines of code and flexibilty).

During my ride home I remembered the addition of ‘tagfiles’ in the 2.0 version of jsp, which make it easy to create tags by writing jsp2.0 pages.

After investigating tagfiles it seems exactly what I need, providing a solution quite similar to including page fragments (which is really intuitive for most people) with some extra features like passing parameters and providing a callback mechanisme to snippets in the parent page!

The following links contain some simple examples and documentation for tagfiles as well as some other less known features of jsp2:


90 Responses to “jsp2 tagfiles for building components”

  1. 1 Frans Maas

    Interesting, but so far I get “ttp is not a registered protocol” when clicking on the link!

  2. 2 Frans Maas

    Hmm, beginners error, the h of http is outside the tags.
    Interesting stuff, will do some more reading.

  3. 3 peter

    Maybe I should add a disclaimer:

    I’m typing all this wearing sunglasses…. the difference between black and blue is just not noticeable. I’m beginning to understand to problems one might face being colorblind!

Leave a Reply





About

Welcome to the weblog of Peter Maas. Here you'll find various posts related to stuff I like (like my kids and espresso) and stuff I do (like developing software).

JavaOne 2008 Pictures

koffie kapot Community One Keynote boottocht IMG_4567 IMG_4686.JPG kleine libelle IMG_4571 vlieg Cable Car line IMG_4599 Scribbled Sun Logo IMG_4616.JPG IMG_6149 spidercrab IMG_4570 trap (II) javaone2008 keynote Danielle op de bruggen van Beeld en Geluid IMG_6124 tarte tatin of red unions
View more photos >

Categories



Meld u aan voor PayPal en begin direct met het accepteren van creditcardbetalingen.