Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

taglib and jspuseBean???

 
Michelle Jordan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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() %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic