?
Solved

Implementing Taglibs from JavaBeans

Posted on 2004-10-03
5
Medium Priority
?
204 Views
Last Modified: 2013-11-24
Hi,

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?
0
Comment
Question by:ycomp
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
siliconeagle earned 2000 total points
ID: 12349766
you just need JSTL which is standard in the JSP 2.0 spec, here are a couple of links that will get you started:-
http://www-106.ibm.com/developerworks/java/library/j-jstl0211.html

http://www-106.ibm.com/developerworks/java/library/j-jstl0318/

if you need some help setting it up then send mea email x1@robmunro.net
0
 
LVL 2

Expert Comment

by:siliconeagle
ID: 12481720
did this help? havent heard anything on this thread for a while.
0
 

Author Comment

by:ycomp
ID: 12484479
I'll get back to this in a while. thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month16 days, 21 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question