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

HttpServletRequest

 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to confirm the answer to this question from Eduardo Cobain.
Which of the following is the formal parameter's type that the HttpServletRequest.setDateHeader( ? ) method accepts?
1) java.util.Date
2) java.sql.Date
3) int
4) none of the above
The Answer says "None of the above It's long". I checked the API for HttpServletRequest. There is no such setter method defined for HttpServletRequest.
Thanks
Ravi
 
Mathias Nilsson
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I don't think the HttpServletRequest has a set method for this. It mostly get methods. The HttpServletResponse has a setDateHeader method


the long date is a long representing the number of milliseconds from January 1, 1970.
So the answer most be. None of the above.
The explination is wrong though. It is not long for HttpServletRequest but for HttpServletResponse
[ November 06, 2003: Message edited by: Mathias Nilsson ]
 
ravi janap
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mathias
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic