Two Laptop Bag
The moose likes JSP and the fly likes class property of a javabean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "class property of a javabean" Watch "class property of a javabean" New topic
Author

class property of a javabean

jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
what is the class property of a javabean. if i have created a bean by the name of userinfo and want to access it in my jsp page.. do i give the whole classpath where the bean is stored..
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by jyotsana dang:
what is the class property of a javabean. if i have created a bean by the name of userinfo and want to access it in my jsp page.. do i give the whole classpath where the bean is stored..

hmm.. Have you imported your bean into your jsp page? have you used the useBean tag? I did not fully understand your question


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
jyotsana dang
Ranch Hand

Joined: Sep 26, 2003
Posts: 135
yes i have imported bean into my jsp page.. bt needed to understand that if i have a userinfo as the bean stored in tomcat/webapps/root/jsp/bean.
when we use <jsp:useBean> tag we set the class as "jsp/bean/UserInfo"
please help
Anand Ko
Ranch Hand

Joined: Dec 03, 2003
Posts: 79
1) I think U can use this syntax :
<jsp:useBean id="<anyname>" class="jsp.bean.userinfo"/> to instantiate userinfo bean and assign to id.


Anand<br />SCJP 1.4, SCWCD 1.4, SCEA 5.0(1/3)
 
I agree. Here's the link: jrebel
 
subject: class property of a javabean
 
Similar Threads
Managed-Bean question in JSF
right to the dot operator should be a bean property?
Passing Bean objects to JavaScript Objects....
What is a bean?
calling functions in jsp