This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Servlets and the fly likes taglib and jspuseBean??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "taglib and jspuseBean???" Watch "taglib and jspuseBean???" New topic

taglib and jspuseBean???

Michelle Jordan

Joined: Dec 13, 2000
Posts: 5

Hi everybody,
I am working on JSP for the past two weeks and
i am not able to understand the concept of
1)taglib and
2)<jsp:useBean> tag
Can somebody help on these two.
Also can somebody direct me to some sites where i can
download some material which has examples on the above topics.

Thankx in advance,
Cynthia Yao
Ranch Hand

Joined: Nov 06, 2000
Posts: 92
JSP 1.1 introduced the ability to create and use custom tags in JSP pages. Various Vender created tag library which you can use in your jsp pages.
See the following link for explanation of taglib.
Here is the tag library tutorial from Sun's Web Site:
Have not really use the bean part, so I can not give you any suggestions.
Michelle Jordan

Joined: Dec 13, 2000
Posts: 5
Hi cynthia,
Thanks for the reply.
I found the sites very helpful.
I really wish you or anybody can help me with
<jsp:useBean> tag.
I would be really grateful.
Thanks in advance.
Carl Desborough

Joined: May 08, 2000
Posts: 22
You can use the useBean tag to create a javabean object (or retrieve an existing one from the request or session or application associcated with the jsp page) ... you can then execute methods on the bean you retrieve by including java code in your jsp, eg:
<%= mybean.getValue() %>
I agree. Here's the link:
subject: taglib and jspuseBean???
It's not a secret anymore!