• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pass object to bean using use bean

 
amit sharma
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have bean which has one getter method whcih accepts object of say ABC .Can i use setProperty of <jsp:usebean to set this property .It seems that it only take string object.
Thanks
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you are not limited to Strings. Refer to JSP.1.14.2.1 Conversions from String values of the JSP specification to check the conversion rules.
 
amit sharma
Ranch Hand
Posts: 129
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
No, you are not limited to Strings. Refer to JSP.1.14.2.1 Conversions from String values of the JSP specification to check the conversion rules.


can you please give a example how to pass session object to bean.
Thanks
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that's what you meant, then you can't. At least, not via setProperty. It wouldn't be a good idea to keep a reference to the Session anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic