Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
    Bookmark Topic Watch Topic
friki data migration
Ranch Hand
Posts: 772
  • 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
    Bookmark Topic Watch Topic
  • New Topic