Implementing Taglibs from JavaBeans
Posted on 2004-10-03
I'm not too familar with JSP and TagLibs. I am familar with j2se and Velocity.
I tried to skim through a few taglib tutorials but I'm just even more confused now.
I've got a bunch of javabeans. I want to expose them as taglibs. Exposing them in Velocity is easy. From my shaky understanding, it seems like JSP 2.0 or something supports Velocity style access but that earlier versions do not? What I mean by velocity style access is just access to public properties and methods of the javabean.
I get the feeling that in JSP 1.x I would have to write special code for each method I want to publicize? I just want to make all my public methods and properties of each component available as a tag.
Obviously this is a very common situation but I couldn't really find a good article to read about this. Someone please explain to me what I need to do.
- Is it ok to code for JSP 2.0? Seems to me like this a relatively new technology so many app servers might not support it yet, right?