aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "taglib and jspuseBean???" Watch "taglib and jspuseBean???" New topic
Author

taglib and jspuseBean???

Michelle Jordan
Greenhorn

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,
Michelle
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. http://www.weblogic.com/docs51/classdocs/API_taglib.html
Here is the tag library tutorial from Sun's Web Site: http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
Have not really use the bean part, so I can not give you any suggestions.
Michelle Jordan
Greenhorn

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.
Michelle
Carl Desborough
Greenhorn

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() %>
 
 
subject: taglib and jspuseBean???