File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Retreiving objects from a bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Retreiving objects from a bean" Watch "Retreiving objects from a bean" New topic

Retreiving objects from a bean

Richard Scothern
Ranch Hand

Joined: May 25, 2001
Posts: 83
Hi everyone,
Before I present my next problem, I'd just like to thank those who have helped in the past.
Now, I am using a bean in a jsp page, the values of which were previously set in a servlet.
One of the variables in the bean holds a reference to a BufferedReader object. I'd like to pass this reference to a custom tag.
The custom tag has been set up correctly, and has the necessary setXxx() attribute. However, when I try to set this attribute with <jsp:getProperty> I get an exception saying it can't convert from type String to type So I assume that the value from the bean is being returned as a String representation. How can I pass the reference to the custom tag without doing this?
gautam shah
Ranch Hand

Joined: Oct 29, 2000
Posts: 72
Originally posted by Richard Scothern:
However, when I try to set this attribute with <jsp:getProperty>

how can u set property of a bean with jsp:getproperty tag. ??? :roll:
try to write some more details abt that.
I agree. Here's the link:
subject: Retreiving objects from a bean
Similar Threads
Passing bundled resource as attribute to panel tag
pre jsp 2.0 custom tags and dynamic attributes
A(nother) problem with beans.
Custom Struts Tag
obtaining the JSP Tag Attributes from a bean