File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Be the container. HSFJ pg 356 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Be the container. HSFJ pg 356" Watch "Be the container. HSFJ pg 356" New topic

Be the container. HSFJ pg 356

Charmy Madhvani
Ranch Hand

Joined: Dec 26, 2007
Posts: 59
The exercise in that page says that 3rd servlet code is right. But when I actually practised it all 3 are wrong.
In all the three cases bean sets in the request scope. But in jsp It searches bean from page scope. It it an errata?

Also if I give scope="request" in useBean, the Ideally 1st servlet code should give me an error since in Servlet the bean type is Person and Object type is Employee. But in jsp I am looking for type Employee.
Please correct me if I am wrong.

SCJP 5.0<br />SCWCD 5.0
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
you are right,all 3 are wrong!

who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
I agree. Here's the link:
subject: Be the container. HSFJ pg 356
It's not a secret anymore!