• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exercise on page 356 ????

 
janne jounivich
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you all agree with solutions to this assignment? According to HFS, the the option number 3 should work ok and print out the name.

I think that the third one also fails but I would like first to hear your more professional view or comments on the matter...Have any one of you wondered about the correctness of the option number 3? It could be interesting to proceed further why I think so.

Cheers,
JRG
 
Sai Patnala
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Third option will work correctly because the object already exists in the request scope, so the jsp:setProperty section in jsp:useBean will not execute leaving the name of Employee at "Evan".

It will print Name is: "Evan" not Name is: "Fred".
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Third option will not work. Check the

Errata
 
janne jounivich
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for sending me errata.

janne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic