aspose file tools*
The moose likes JSP and the fly likes pass object to bean using use bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "pass object to bean using use bean" Watch "pass object to bean using use bean" New topic
Author

pass object to bean using use bean

amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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.


[My Blog]
All roads lead to JavaRanch
amit sharma
Ranch Hand

Joined: Jul 19, 2006
Posts: 129
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pass object to bean using use bean