• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

class property of a javabean  RSS feed

 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
jyotsana dang
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I think U can use this syntax :
<jsp:useBean id="<anyname>" class="jsp.bean.userinfo"/> to instantiate userinfo bean and assign to id.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!