• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type and Class attributes problem in jsp useBean

 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:useBean type="com.test.Person" id="empD" scope="request"/>

in here Person is a super class of empD's class (Employee exteds Person)

can we set the propery of "empD" that belogs to Employee but not to Person using <jsp:setProperty>
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you can, as the container will use reflection to retrieve the getter's name.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any others idea.

because in pure java we cant do this? I tried in here and it works without error..

Can senior person answer this why?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic