File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java Interview Guide
this week in the
Web Component Certification (SCWCD/OCPJWCD)
Query in HFSJ - 4 SCWCD Takers
Joined: Sep 19, 2005
Jun 25, 2007 10:05:00
Hi all, i have a small query with reg. to content specified in page 360 of Head First
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.
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.
Joined: Nov 11, 2006
Jun 26, 2007 05:43:00
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:
subject: Query in HFSJ - 4 SCWCD Takers
Struts & DBCP : getting Null Datasource
useBean with only type attribute(please help)
How to edit database table in jsf
JavaBeans and Servlets
Trouble setting bean values in jsp via servlet in request scope
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015