A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
HFS&J page 353
Joined: May 19, 2008
Oct 19, 2010 14:36:47
I want to understand one thing from the book - page 353 a type attribute in <jsp:useBean>
For example if I have list of persons (class com.Person) and using <jsp:useBean> would it be?
<jsp:useBean id="person" type="java.util.List" class="com.Person" scope="page"/>
SCJP 6.0 Passed | SCWCD Passed | PSM in progress...
Author and ninkuma
Joined: Jan 10, 2002
Oct 19, 2010 14:45:06
Is com.Person an implementation of List? If not, that would make no sense.
Asking smart questions
Books by Bear
Joined: Aug 03, 2008
Oct 19, 2010 23:01:49
attribute must have a class which is a subtype of the
attribute. In this case it most probably is not. If you already have a list of Person instances in page scope, then you don't even need the
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
I agree. Here's the link:
subject: HFS&J page 353
doubt on jsp:useBean tag
can't able to run <jsp:useBean> in jsp page
problem in understanding jstl set tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013