• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

some HFS doubts till chapter 7

 
shankar valiinaykam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

1. P-169. WEB-INF/classes is one of places where listener class can be placed. WHAT ARE THE OTHER PLACES?

2. P-205. ctx.getResourceAsStream("bookcode.jar"); Forward slash is missing. I guess this is a typo. Am I right, kathy?

3. P-206. Since HttpSessionBindingListener is implemented by Attribute class, I feel it should fall under Attribute listener rather than placing in life cycle listener. If I am wrong, pls explain?

4. P-213. Q-12- D,E says the attribute and API for getting query string from forwarded request. Can I use the same thing for request from client also?

5. What is the value for setMaxAge() of cookie, if I dont want it to be expired. In case of session, it is -1. Here, if I say, -1, cookie disappears as soon as browser shuts down. So, that makes me wonder what is the value for keeping COOKIE EVER?

6. Inside attributeReplaced API, event.getVale() returns old value. How do I get new value?

Waiting for your replies,
Thanks in advance,
Shankar
 
Ranjit Jana
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. P-169. WEB-INF/lib is another place
2. P-205. I agree there is a forward slash missing

3. P-206. I agree but hope somebody else comment on it
4. P-213. Yes you can use them .
5. The api says "A negative value means that the cookie is not stored persistently and will be deleted when the Web browser exits. A zero value causes the cookie to be deleted." Your question still stays how to keep cookies alive for ever ?

6. Please answer if anybody have answer for this.


Regards,
Ranajit Jana
 
P. Dunn
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shankar valiinaykam:
5. ...MaxAge() value for keeping cookie forever..

6. Inside attributeReplaced API, event.getVale() returns old value. How do I get new value?

5: For ever is a really long time. A bit of an imposition. I don't think HTTP supports it as an expiration.
6:How about:

[ February 23, 2005: Message edited by: P. Dunn ]
 
Ranjit Jana
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yooo. This was cool.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic