• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Query in HFSJ - 4 SCWCD Takers

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic