• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query in HFSJ - 4 SCWCD Takers

 
Raj Kumar
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, i have a small query with reg. to content specified in page 360 of Head First Servlets & JSP.

The description is about the use of setProperty using the Property attribute with the value "*" means all the request param names with the same property name in bean will be set.

Questions
1) First on checking the type and class value used in <jsp:useBean> it's not possible to set the employee related details when considering the superclass is the reference type.?

2) In this case the employee related bean property won't be set, is it correct?

Thanks for your valuable time.
 
Mark Garland
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd never spotted that before - but I guess you're correct.

In the code, the Employee object would be held by a Person reference, which would not give you access to the EmpID variable.

(They do change it on the next page though before the working example)
[ June 26, 2007: Message edited by: Mark Garland ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic