Forums Register Login

class property of a javabean

+Pie Number of slices to send: Send
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..
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
1) I think U can use this syntax :
<jsp:useBean id="<anyname>" class="jsp.bean.userinfo"/> to instantiate userinfo bean and assign to id.
Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1024 times.
Similar Threads
Managed-Bean question in JSF
Passing Bean objects to JavaScript Objects....
What is a bean?
calling functions in jsp
right to the dot operator should be a bean property?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:50:14.