Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it Typo in HFSJ?

 
Kannan Raju
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the page# 71 (item# 7) of HFSJ, says servlet creates the request object.
Is it request object or response object? I think it should be response object. Please clear me. Thanks.
 
Harish Yerneni
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not a Typo. The servlet adds the answer from the model to the request object using the request object attribute.

The code is explained on page 89.

request.setAttribute("styles", result);

styles is the name of the attribute and result is the value(type object),in this case it is a List. Needless to mention, List is an object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic