• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

some HFS doubts till chapter 7

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yooo. This was cool.
Thanks
 
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic