Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror

Slashdot videos: Now with more Slashdot!

  • View

  • Discuss

  • Share

We've improved Slashdot's video section; now you can view our video interviews, product close-ups and site visits with all the usual Slashdot options to comment, share, etc. No more walled garden! It's a work in progress -- we hope you'll check it out (Learn more about the recent updates).

×
Java

Journal: JSP tag library design

Journal by manavendra
I'm currently working on defining the interfaces between the layer that houses the presentation logic and tag libraries that will invoke that logic from the JSP for a large j2ee application.

There seeem to be several books out there that talk about tag libraries, and several frameworks that handle one aspect or the other, but I believe creating a new tag is akin to creating a new language, and there are the usual concerns of usability, extensibility and customization that I am trying to resolve.

At the simplest best, a good tag library design (IMO) should provide the following:
  1. Well defined interfaces between presentation layer and tag libraries themselves
  2. Tag library syntax should be declarative - on the lines of markup languages like HTML - where you describe what you want, and not HOW it should be done. From what I've read so far, I have come to believe the tag library syntax should not be procedure-oriented, but action-oriented.
  3. Perhaps the biggest challenge is to foresee the customization needs of future users, ISV and OEM's. A well defined taglib should not only ease the life of web page designers, but also make it easy to customize the views.

Research is what I'm doing when I don't know what I'm doing. -- Wernher von Braun

Working...