Chris,
Sure, you can determine the member variables and methods of a Java class by
accessing an object's Class object and using the classes in the
java.lang.reflect package. This is how the jsp:setProperty tag does it.
Check out java.lang.Class and the Object.getClass() method.

-Richard



At 09:51 AM 6/11/2003 -0600, you wrote:
Within my jsp I wish to look at the values of each field of a javabean.  I
was thinking that I could use the foreach tag, but that looks for a
collection of objects and I will only have one instance of the bean for
the session.

I am wondering if there is a way that I can access all the values of a
bean much like I can populate all the values of the bean with the
<jsp:setProperty name="valueBean" property="*" /> tag.

Any thoughts?

TIA,
Chris

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

Reply via email to