|
![]() |
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
SCJP 5, SCWCD 5
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
SCJP 5, SCWCD 5
the book says that this will fail at request time.But if we change the servlet code to Employee p = new Employee();
it will run properly.
looks for object in the page scope and it could not find..<jsp:useBean id="person" type="Employee">
SCJP 5, SCWCD 5
SCJP1.4 (81%)<br />SCWCD1.5(95%)
@sudhakar I think the default scope is page so there is no need to add that right? but here the person attribute is stored in request scope right?
SCJP 1.4 (81%)<br />SCWCD 5 (95%)
I'm curious if it will work if you add scope='page' to <jsp:usebean ..> !
Note that the HFSJ example has a Person as type, not an Employee.
SCJP 1.4 (81%)<br />SCWCD 5 (95%)
Poop goes in a willow feeder. Wipe with this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
|