aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Query in HFSJ - 4 SCWCD Takers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Query in HFSJ - 4 SCWCD Takers" Watch "Query in HFSJ - 4 SCWCD Takers" New topic
Author

Query in HFSJ - 4 SCWCD Takers

Raj Kumar
Ranch Hand

Joined: Sep 19, 2005
Posts: 65
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

Joined: Nov 11, 2006
Posts: 226
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 ]

28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query in HFSJ - 4 SCWCD Takers