Implementing Taglibs from JavaBeans


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?
Who is Participating?
siliconeagleConnect With a Mentor Commented:
you just need JSTL which is standard in the JSP 2.0 spec, here are a couple of links that will get you started:-

if you need some help setting it up then send mea email
did this help? havent heard anything on this thread for a while.
ycompAuthor Commented:
I'll get back to this in a while. thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.