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
posted 7 years ago
you are right,all 3 are wrong!
who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress