This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

Be the container. HSFJ pg 356

Charmy Madhvani
Ranch Hand

Joined: Dec 26, 2007
Posts: 59
Hi,
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: http://aspose.com/file-tools
 
subject: Be the container. HSFJ pg 356
 
Similar Threads
<jsp:useBean> standard action type and class confusion
usebean query
Doubt with <jsp:useBean> having only type no class attribute
Bean related exercise question
using jsp:useBean tag