File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic
friki data migration
Ranch Hand
Posts: 772
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Consider the following code : (an Employee is a Person who has an empID)

Both JSP's standard actions getParameter and setParameter use introspection to find the getter/setter of a property, so accessing the following page displays the employee's id correctly, even if the bean is a Person:

The following code illustrates what introspection is :

Refer also to the following thread :

Bryan Basham about setProperty
I agree. Here's the link:
    Bookmark Topic Watch Topic
  • New Topic